开发者

iPhone Dev - Is it possible to load an app's mainWindow conditionally?

Is it possible to code this sequence of events once an iPhone app has been launched?

  • User launches application.
  • AppDelegate.m checks if data is present in internal database.
  • If yes, MainWindow.xib loads.
  • If no, AnotherViewController.xib loads.

I've only seen app examples that load the MainWindow.xib without conditions.

If it is possible, which method in AppDelega开发者_C百科te.m handles the logic? (applicationDidFinishLaunching? viewDidLoad?)


I don't think you want to load the MainWindow conditionally. Instead, load and show a viewController conditionally. This can be done in applicationDidFinishLaunching.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜