Why wont my viewDidLoad method execute?
I have an iPhone app, with a tab bar controller. Before the tab bar is loaded, I present a modal view for registration. Once registration is completed this view is dismissed, and the tabs appear, with the "News" tab selected. For some reason, even though the News view is displaying, the viewDidLoad method of the News class is not being called.
I know I am probably missing something simple, I'm kind of a noob at iPhone programming. Any help is 开发者_StackOverflow社区appreciated.
Did you set the 'News' view to the tabbar? eg:
[tabBarController setViewControllers:
[NSArray arrayWithObjects:newsController, nil]];
Just trying to make sure that you're not missing stuff :)
精彩评论