Times of calling application:didFinishLaunchingWithOptions: differs between iOS 5.x and iOS 6

你。 提交于 2019-12-07 15:36:20

问题


Subj.

In iOS 5.x I have the next consequence of methods calling:

-[UIViewController initWithCoder:]
-[UIApplicationDelegate didFinishLaunchingWithOptions:]
-[UIViewController viewDidLoad]
-[UIViewController viewWillAppear:]
-[UIViewController viewDidAppear:]

But in iOS 6.x it's the next:

-[UIViewController initWithCoder:]
-[UIViewController viewDidLoad]
-[UIViewController viewWillAppear:]
-[UIApplicationDelegate didFinishLaunchingWithOptions:]
-[UIViewController viewDidAppear:]

So... what I gonna do? It's my fault or Apple have changed some logic?


回答1:


in your main.m

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));


来源:https://stackoverflow.com/questions/13293922/times-of-calling-applicationdidfinishlaunchingwithoptions-differs-between-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!