UITableViewController subclass not loading

I am trying to display a table on the screen ...

Basically I am creating a custom UITableViewController with the methods needed by the UITableView delegate and data source, which is on its own, since the UITableViewController does it for you.

When I put it in a controller -initWithRootView:

and add a navbar display to the window, it doesn't show up! When debugging creates a table and that's it, but the delegate methods are never called!

Any ideas?

0


source to share


2 answers


Have you tried manually calling -reloadData on your controller's memory table? This will happen if everything connects, call the methods of the delegate / data source. If that doesn't do anything, (a) something isn't connected correctly, or (b) you're not loading your controller correctly.



0


source


I created a table and added the tableView property directly to the window and it worked. I don't think adding reloaddata will make it work as this controller does it automatically. Something is wrong if you added it as a rootview controller to the nav controller!



0


source







All Articles