标签: ios uiapplication
didFinishLaunchingWithOptions中给出的 UIApplication 实例是否与 [UIApplication sharedApplication]
答案 0 :(得分:1)
是的,它们是相同的,因为UIApplication是单身人士;消息[UIApplication sharedApplication]返回该单例对象,didFinishLaunchingWithOptions也是如此。
UIApplication
[UIApplication sharedApplication]
didFinishLaunchingWithOptions