UIApplication sharedApplication实例与didFinishLaunchingWithOptions中给出的实例相同?

时间:2015-06-24 12:18:05

标签: ios uiapplication

didFinishLaunchingWithOptions中给出的 UIApplication 实例是否与 [UIApplication sharedApplication]

相同

1 个答案:

答案 0 :(得分:1)

是的,它们是相同的,因为UIApplication是单身人士;消息[UIApplication sharedApplication]返回该单例对象,didFinishLaunchingWithOptions也是如此。