UITabBarController calls viewDidAppear
UITabBarController calls viewDidAppear
- Subject: UITabBarController calls viewDidAppear
- From: Remco Poelstra <email@hidden>
- Date: Mon, 21 Mar 2011 09:46:08 +0100
Hi,
I've a UITabBarController. with two tabs, that's loaded from the MainWindow.xib. It's UINavigationControllers are in the same NIB, which load their UITableViewControllers from external NIB's (as recommended by Apple).
The tableview in the first tab loads in its tableView:didSelectRowAtIndexPath the same tableview as the second would (but with different properties). This is the same behaviour as the iPod application, where the artist tableview loads an album view, but you can also show albums from the tab bar controller (showing a different set of albums).
When the second tableview is loaded from the first tableview, everything works fine. When the second tableview is loaded directly in the second tab, viewDidAppear is called long before the view is shown. The tableView therefore did not have time to fully initialize (and call numberOfRowsInSection:) and crashes on a wrong row insert command in viewDidAppear.
How can I find out why the viewDidAppear is called to early?
Kind regards,
Remco Poelstra
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden