My application works for iOS 5.1 but for iOS 6 simulator I get the following error.
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: '-[UITableViewController
loadView] loaded the "MainListViewController" nib but didn't get a
If you have a NIB for the
UITableViewController subclass then its
view outlet must be hooked up to a
You're right to delete
MainListViewController.xib and do it all in code, but the reason it didn't work for you is because the old XIB will not be deleted when you build & run. So, delete the app from the simulator and try again. It should work then.