I have a UITableViewController
which in it's tableView:didSelectRowAtIndexPath
method, sets up a view controller, and calls
[self.navigationController pushViewController: viewController animated:YES]
.
When i select a row in the root controller, the second viewController loads but is empty - table view loads but has no data. Here, tableView:numberOfRowsInSection
is not called.
When i return to the top level, and then select the same row again, the view loads correctly - method called.
Why would the table view not call the delegate methods on the fist attempt, but call them on the second?
Am i missing something obvious?
Thanks