uitableview

Is it possible to put a hidden search bar above a grouped table view?

In OS3.0 a lot of plain table views have an initially hidden search bar that can be accessed by scrolling down to reveal it (e.g. mail, ipod). Is it possible to do the same thing for a grouped table view? Background: I'm using a grouped table view as a static navigation menu (similar to the Things app). The content never changes, it...

UITableView animation issue

Hi I have a table on a page, but it doesn't take up the entire screen (about 1/3). At some point I would like to show something above the table, but keep the view below the table as it is. This isn't really the problem though. I use a UIView animation to change the size of the table's frame and move it down. The issue is that when the ...

How does one design the datasource for a UITableView in order to sort with a UISegmentedControl?

I am in the process of designing and coding an iPhone application to display movie times. I currently have a Movie Class which contains: NSString title NSSDate releaseDate NSSDate score My UI is a simple UINavigationController which has a segmented control as it's title and UITableView to display the Movies setup in Interface Builder...

customized the UITableView

I'm in the process to create a simple iPhone application that has the "from" and "to" on top on the table view. This is similar to the Google map's direction input bar in the iPhone. What are the best steps to create these non-scrollable input bar? Any help, tips, or recommendation will be much appreciated. ...

Split String at specific line for NSString

Hello ist there a way to split a String for UITableView at a specific line to put the "rest" (the second part of the data) in an own cell NSString *data; CGsize *size = [data sizeOfStringWithFont:[UIFont systemFontOfSize:14] constrainToWidth:280.0]; if the size.height e.g. is greater than 1500 i want to split the string at this li...

UITableView: deleting sections with animation

Update I have posted my solution to this problem as an answer below. It takes a different approach from my first revision. Original Question I previously asked a question on SO that I thought solved my issues: http://stackoverflow.com/questions/998603/how-to-deal-with-non-visible-rows-during-row-deletion-uitableviews However, I now...

iPhone - UITableView not calling didSelectRowAtIndexPath method in 3.0 SDK

I have an iPhone app that works fine in 2.x version of the SDK. When I upgraded to 3.0, the didSelectRowAtIndexPath method is no longer called, so the action when a user highlights a row doesn't happen. This is a custom UITableViewCell that is in a separate nib from the UITableView. Both the data source and data delegate are properly ...

Problem with UItableview reload data using alert view with prompt on a custom cell.

I have a UItableViewController with a custom cell designed using interface builder. The custom cell has a button and a label on it. The button when click will trigger an alert view with prompt. Once the text is entered and press OK the label on the cell will display the updated info on the table. The problem is the label will not get upd...

iphone indexed table view problem

I have a table view in which I'm using sectionIndexTitlesForTableView to display an index. However, when I scroll the table, the index scrolls with it. This also results in very slow refreshing of the table. Is there something obvious I could be doing wrong? I want the index to remain in place on the right while the table scrolls. This i...

Animate cell height change in UITableView

I'd like to change the height of a UITableViewCell when it gets selected. I'm able to do this by defining - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath and calling the tableview's reloadData when the cell gets selected, but I'd like to have the change be animated. Any suggestions on how...

Seems impossible: to animate the height change of row in UITableView

This seems like an impossible task after studying the docs from Apple. Is it possible to animate the height change of a table row? As far as I can tell, you can only animate inserts and deletes. You can also animate things inside a table view cell (the layout etC) but you can't really animate the height of a cell (and expect the rest o...

iPhone, hook for edit/done button click in table view

In my table view controller there is self.navigationItem.leftBarButtonItem = self.editButtonItem; which produces a regular edit/done button at the top left corner. Hence, once the user clicks "Edit", the button caption changes to "Done" and the table entries may be deleted or reordered. I would like to get notified once the user actua...

A UIButton in a UITableViewCell & getting bounds/frame

I have a UIButton in a UITableView cell, in a UITableView. The result is a list with buttons in it. When the UIButton is pressed, it calls a touchUpInside method, and all is great. What I am having problems with is that I want to zoom out a new view from the location (frame) of the button when it is pressed. If I just get the bounds ...

What's the right way to add a ToolBar to a UITableView?

I'm writing a Navigation-Based iPhone app, and I'd like to have a UIToolBar docked at the bottom of my screen, with a UITableView scrolling between the tool bar and the navigation bar. I've seen a couple of forums where it's been suggested that the View Controller handling this view should be a standard UIViewController rather than a U...

UIButton in UITableView cell like "Delete Event"

I'd like to add a button to a table cell. The "Delete Event" in the calendar app inspired me... (a similar case is "Share Contact" in contacts) As of now there's - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //..yadayadayada cell = [tableView dequeueReusableCellWithIdentifi...

How do you reposition subviews in a UITableViewCell?

Hello Folks, I was in the process of writing a threaded UITableView that retrieves some information from the net. I would like to display an activity indicator in place of the regular cell.image while the images are loading. The problem is that the custom label and activity indicators are not behaving properly. The labels start out in ...

iPhone dev: editing grouped UITableView

Hello We are about to submit an application to the App store and we have encountered a very odd error when deleting rows and sections in a table. So far, and for compatibility shake we've been linking with 2.0 (so that any iPhone could run our code). For that scenario, we have a group table that allows removing items and this is how ...

Scroll UITableView so that the header isn't visible

I've got a UITableView with a UISearchBar as the tableViews.tableHeaderView. Just like the new Mail.app, Notes.app, etc. in 3.0. I want to hide the SearchBar until the user drags it in his sight. My attempt only works when there're a couple of items in the tableView, so that the tableView actually wants to scroll. I call this in loadVie...

iPhone UITableView "More" Cell? How to implement?

Having trouble figuring out how to add a new row into the bottom of a UITableView that says "Load More Results" in a different format than the rest of the UITableView's cells? This is how Mail.app works on the iPhone. Anybody done this? Is it super-obvious and I missed it? Any help is appreciated! ...

How do I detect when no UITableView table cell has been selected?

I have a start date/end date feature in my iPhone application. It is similar to that in the iPhone's native Calendar application, except there's no "All-day" option. That is, all the user can do is enter a start time/date and an end time/date. The interface is a simple grouped UITableView with two cells. The user selects either the Sta...