In an iPhone navigation based app, I want to add a second tableview but have its design available in IB. I've added a new empty XIB and dragged a UITableView onto it. I want to setup the layout through IB. I've created a controller for this tableview and set the File's Owner class in IB to this controller. I linked the tableview to File's Owner as well. I set the tableview to grouped in IB. However, that does not translate at runtime. I still have a plain tableview. In fact, none of the Inspector settings work at runtime. What have I missed?
+1
A:
Make sure when you instantiate the view controller you do so using initWithNibName:bundle:
using the name of the file you've created.
Ed Marty
2009-03-02 01:40:14
+1
A:
Select your tableview and open it's inspector. In the first tab of the inspector, expand the "TableView" and you should see an option called Style. Change it from "Plain" to "Grouped".
If you can't find this, try this on your viewdidload tableView.style = UITableViewStyleGrouped
Mugunth Kumar
2010-04-05 17:17:13