开发者

Why wont my viewDidLoad method execute?

开发者 https://www.devze.com 2023-01-06 02:21 出处:网络
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

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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消