简体   繁体   English

iOS Storyboard应用程序+ AppDelegate

[英]iOS Storyboard app + AppDelegate

Can't get where pointed out in configuration files that my app delegate is AppDelegate.h ? 无法获取我的应用程序委托为AppDelegate.h的配置文件中指出的位置? Or maybe this name used by default always ? 或者,也许默认情况下始终使用此名称?

If you look in main.m, the fourth parameter to UIApplicationMain() is the class of the application's delegate: 如果查看main.m,则UIApplicationMain()的第四个参数是应用程序委托的类:

@autoreleasepool {

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

}

An instance of this class will be created as a result of this call. 调用的结果将创建此类的实例。

Look at main.m (the call to UIApplicationMain ). 查看main.m(对UIApplicationMain的调用)。 The boilerplate there has class definitions. 样板中有类定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM