调用应用程序的时间:didFinishLaunchingWithOptions:iOS 5.x和iOS 6之间有所不同 [英] Times of calling application:didFinishLaunchingWithOptions: differs between iOS 5.x and iOS 6
本文介绍了调用应用程序的时间:didFinishLaunchingWithOptions:iOS 5.x和iOS 6之间有所不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Subj。
在iOS 5.x中我有调用方法的下一个结果:
In iOS 5.x I have the next consequence of methods calling:
-[UIViewController initWithCoder:]
-[UIApplicationDelegate didFinishLaunchingWithOptions:]
-[UIViewController viewDidLoad]
-[UIViewController viewWillAppear:]
-[UIViewController viewDidAppear:]
但是在iOS 6.x中它是下一个:
But in iOS 6.x it's the next:
-[UIViewController initWithCoder:]
-[UIViewController viewDidLoad]
-[UIViewController viewWillAppear:]
-[UIApplicationDelegate didFinishLaunchingWithOptions:]
-[UIViewController viewDidAppear:]
那么......我要做什么?这是我的错还是Apple改变了一些逻辑?
So... what I gonna do? It's my fault or Apple have changed some logic?
推荐答案
在你的main.m
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
这篇关于调用应用程序的时间:didFinishLaunchingWithOptions:iOS 5.x和iOS 6之间有所不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文