uitableview

How can I reproduce the standard header for a plain UITableView

Hi everybody, I have a plain UITableView in my iPhoneApp. I would like to change the font size of the header text. I understand that this is not possible and that I need to create my custom header with my own label. I just wonder if anybody knows how I can reproduce a header similar to the standard one (using the same background image...

UITableView and keyboard scrolling problem

Hi all, after a lot of trial and error, I'm giving up and asking the question. I've seen a lot of people with similar problems but can't get all the answers to work right. I have a UITableView which is composed of custom cells. The cells are made of 5 text fields next to each other (sort of like a grid). When I try to scroll and edit ...

How to reload UITableView when empty?

Calling [self.tableView reloadData] works fine when adding a new row or deleting one. When deleting all rows and wanting to see an empty table, reloadData has no affect. All of the phantom rows are still there until the app is relunched. I'm doing this on the RootViewController, which is a UITableViewController. Is there another way ...

When should one use UITableView reloadData ? And defect associated ;)

Hi, I have built a UITableView with custom cells which each contain 5 textfields (a bit like a grid). The cells can be edited inline (no need to go in a separate view). I am faced with some wierd defects when it comes to using reloadData. my table footer is dynamic (calculates a value based on the cells). Should I call reloadData eve...

Deletion button appearing below section index in UITableView.

I have my UITableView set up (in the standard way) to allow deletion on swipes. Whenever I have a sectionindex showing, however, the "Delete" button appears /below/ the section index: Perhaps I'm missing something obvious? I've tried setting the selected cell to be less wide in willBeginEditingRowAtIndexPath, but this removes the ...

UITableview cell selection

I have implemented a UIImage within a cell in UITableView. When a cell is selected, I would like to prevent the blue color (that typically appears in background) from appearing... instead I want a frame with a blue color to appear around the image. How do I do this? Vas ...

How can I catch touch events to a UITableView section header?

I've implemented a custom view for my UITableView section headers (via viewForHeaderInSection). When in plain view mode, the default behavior seems to be that the cells float underneath the section headers and touch events fall through to the cells underneath. How can I have the custom section header view respond first to any touch eve...

Why does UITableView crash app in dealloc?

I'm doing this in dealloc of a view [baseTable release]; In the header file, I declare it like this: IBOutlet UITableView *baseTable; .... @property(nonatomic, retain) UITableView *baseTable; For some reason, I get a "EXC_BAD _ACCESS" in the dealloc. When I comment out the above line, all is well. How can I determine what specifi...

How do I use a UIWebView in a Table Cell?

I'm building a table with some text that is HTML, so I am using a UIWebView as a subview of my custom table cells. I already ran into one problem - as I scrolled down in the table, it would take the UIWebViews a second to update. For example, I'd be viewing Cells at rows numbered 1, 2, and 3. I'd scroll down to say 8, 9, and 10. For a mo...

How do you have a table and other elements on the same iPhone view?

I'm trying to write an iPhone app where one of the main pages has a few text fields and a 3-element table that basically work as navigation buttons to pickers. However, all of the tutorial examples I've found treat tables as something that takes over the whole view. Can anyone point me to examples where a table is only a PART of a vi...

UITableView: moving a row into an empty section

I have a UITableView with some empty sections. I'd like the user to be able to move a row into them using the standard edit mode controls. The only way I can do it so far is to have a dummy row in my "empty" sections and try to hide it by using tableView:heightForRowAtIndexPath: to give the dummy row a height of zero. This seems to le...

UINavigationController with UITableView and UIView

I want to be able to switch between a UITableView and a standard UIView in a Parent View. Basically I have a UITableView that shows on load displaying a log of information. I want to have a segment control in the header of the Window that when the user taps, transitions to a Graph View which is a standard UIView. The UIViewController in...

Resizing UITableView on RootController

Is it possible to resize the UITableView on the RootController of a nav based app? When RootViewController.xib is opened in IB, there isn't a view. Just the UITableView. Clicking the inspector and then the little yellow ruler, frame height is grayed out. I'm adding a toolbar programmatically to the RootViewController: [toolbar setFr...

How to Reload a UITableView While I am Looking at It

When I have a UITableView as part of the visible view controller, how can I reload it so that the data I am looking at changes to the new data. Just calling reload doesn't seem to refresh the data until I scroll it. ...

Optimization UITabBarController + UITableViewController problem

I wanted to start a optimization thread. I have ran into an interesting situation, I have an iPhone app with 3 UITableViews each displaying more or less the same data (you can say it's a matter of filering). To date I had 3 separate NIBs for this, each with it's own controller, additionaly the UITableViews were inside UINavigationContr...

Backing up 2-4 previous views...

I'm writing a standard table view application with a number of views in the hierarchy. When I've clicked in 3-4 views, is there a way to get back to the top view? I tried loading it, but then I lose the hierarchy. I know this command will bring me back 1 view, which is what the 'back' button does: [self.navigationController popViewCo...

Change Default Scrolling Behavior of UITableView Section Header

I have a UITableView with two sections. It is a simple table view. I am using viewForHeaderInSection to create custom views for these headers. So far, so good. The default scrolling behavior is that when a section is encountered, the section header stays anchored below the Nav bar, until the next section scrolls into view. My questi...

How do i add button style cells to table views in iPhone apps?

I'm not able to find any specific examples in apple's documentation on this. I want to add two to three buttons to a table view programmatically, much like the contacts app does with the send text message/ add to favorites buttons on a contacts's info. does anyone know how to configure this? ...

Problem to populate a Tableview on iPhone

Code N°1: NSMutableArray *arrayTmp = [[NSMutableArray alloc] initWithObjects:nil]; [arrayTmp addObject:@"line 1" ]; [arrayTmp addObject:@"line 2" ]; self.list = arrayTmp; [self.tableView reloadData]; [super viewDidLoad]; [arrayTmp release]; Code N°2: NSMutableArray *arrayTmp = [[NSMutableArray alloc] initWithObjects:nil]; NSString...

UITableView with dynamic cell heights -- what do I need to do to fix scrolling down?

I am building a teensy tiny little Twitter client on the iPhone. Naturally, I'm displaying the tweets in a UITableView, and they are of course of varying lengths. I'm dynamically changing the height of the cell based on the text quite fine: - (CGFloat)heightForTweetCellWithString:(NSString *)text { CGFloat height = Buffer + [text si...