I have been going through and re-creating Apple’s “Advanced Table View Cells” example to better understand everything. I have done everything, but somehow missed one detail and I can’t figure it out.
If you launch their example (http://developer.apple.com/iphone/library/samplecode/AdvancedTableViewCells/Introduction/Intro.html) and open up the RootViewController.xib file, they have a “tableView” outlet on the inspector that is linked to File’s Owner. For whatever reason, I can’t get that to show up on my version.
My code is almost verbatim of Apple’s, so what am I missing? Did I not declare that somewhere or doesn’t that get taken from the RootViewController.m file?
So after being bugged by this problem for a while… I figured out a workaround. Please note that all of my code was exactly the same as Apple’s and yet IB would never show a
tableViewoutlet (as if it wasn’t subclassing UITableView properly in my UINavigation Controller).Essentially all I did was change the subclass from a UITableViewController to a UIViewController and then called the delegate and datasource protocols. After doing that and creating my own tableView outlet, I was finally able to hook up the tableView and get it working as it should.
used to be