The UITableViewController class is a iOS UIViewController subclass that creates a controller object that manages a table view.
114
votes
5answers
34k views
UITableView backgroundColor always gray on iPad
When I set the backgroundColor for my UITableView it works fine on iPhone (device and simulator) but NOT on the iPad simulator. Instead I get a light gray background for any color I set including ...
42
votes
8answers
33k views
UITableview: How to Disable Selection for Some Rows but Not Others
I am new to iPhone development. I am displaying in a group tableview contents parsed from XML.I want to disable the click event on it (I should not be able to click it at all.) The table contains two ...
38
votes
11answers
38k views
Lazy load images in UITableView
I have some 50 custom cells in my UITableView. I want to display an image and a label in the cells where I get the images from URLs.
I want to do a lazy load of images so the UI does not freeze up ...
31
votes
1answer
14k views
Can you add a UITableViewController's TableView to another View?
I've inserted a UITableViewController and it's corresponding UITableView into a simple IB document. The goal is to include the UITableView inside of a parent UIWindow (or UIView) with other "stuff" ...
29
votes
4answers
28k views
iPhone - Setting background on UITableViewController
Is there any way to set a background view on a UITableViewController?
I try with the code I am using on a UIViewController, but the view comes over all the contents of the table view. If I add the ...
25
votes
3answers
16k views
iPhone: Show modal UITableViewController with Navigation bar
I am showing a modal view which is a UITableViewController class. For some reason it won't show the navigation bar when I show it. Here is my code:
SettingsCreateAccount *detailViewController = ...
22
votes
3answers
18k views
Add toolbar to UITableViewController
What is the simplest way to add UIToolBar to UITableViewController? I'm depending on edit functionality, so I can't change UITableViewController to UIViewController easily.
22
votes
3answers
8k views
Strange error when adding items to prototype cells in storyboard-IB
I have quite a large project (~20 scenes). One of which is a TableViewController with a custom UITableViewController class. I have given the cell a Reuse Identifier, and added a label to it. When I ...
22
votes
3answers
20k views
Calculating multiline text height for UILabel/UITableViewCell: different results when calculating vs actual drawing
This general topic has been asked here multiple times: how to render UITableViewCells with varying amount of text and thus varying height. The canonical answer is: you calculate the height in table ...
20
votes
4answers
10k views
Delayed UIImageView Rendering in UITableView
Ok, I've got a UITableView with custom UITableViewCells that each contain a UIImageView whose images are being downloaded asynchronously via an NSURLConnection. All pretty standard stuff...
The issue ...
18
votes
2answers
15k views
How to add a UIToolbar to a UITableViewController programmatically?
I have opted to use a UITableViewController without a nib. I need a UIToolbar at the bottom with two buttons. What is the simplest way of doing that?
P.S. I know that I can easily use a ...
18
votes
2answers
9k views
resizing UITableView to fit content
I am creating an app which will have a question in a UILabel and a multiple choice answers displayed in UITableView, each row showing a multiple choice. Questions and answers will vary, so I need this ...
17
votes
3answers
5k views
Enable editing does not call didSelectRowAtIndexPath?
I have a UITableViewController where the user should be able to edit the items. In order to enable editing i use this :
self.navigationItem.rightBarButtonItem = self.editButtonItem;
And for ...
16
votes
7answers
13k views
UITableView set to static cells. Is it possible to hide some of the cells programmatically?
UITableView set to static cells.
Is it possible to hide some of the cells programmatically?
15
votes
9answers
2k views
Custom UITableView headerView disappears after memory warning
I have a UITableViewController. I create a custom headerView for it's tableView in the loadView method like so:
(void)loadView {
[super loadView];
UIView* containerView = [[UIView alloc] ...