本文介绍了applicationDidFinishLaunching 函数在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的文档说:
将以下代码添加到 applicationDidFinishLaunching 函数中...-(void)applicationDidFinishLaunching:(UIApplication *)application{
但我只看到
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
问:这两个一样吗?
如果没有,我在哪里可以找到 applicaitonDidFinishLaunching 函数?
If not, where do I find the applicaitonDidFinishLaunching function?
推荐答案
根据 Apple 文档:
Per the Apple documentation:
applicationDidFinishLaunching:
当应用程序完成启动时告诉委托.
Tells the delegate when the application has finished launching.
-(void)applicationDidFinishLaunching:(UIApplication *)application
此方法在早期版本的 iOS 中用于初始化应用程序并准备运行.在 iOS 3.0 及更高版本中,您应该使用 application:didFinishLaunchingWithOptions:
代替.
This method is used in earlier versions of iOS to initialize the application and prepare it to run. In iOS 3.0 and later, you should use the application:didFinishLaunchingWithOptions:
instead.
这篇关于applicationDidFinishLaunching 函数在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!