开发者

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

开发者 https://www.devze.com 2022-12-09 06:39 出处:网络
Is it possible to code this sequence of events once an iPhone app has been launched? User launches application.

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

精彩评论

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