Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想自定义 UIApplication。所以我有一个子类 UIApplication。我的应用程序没有 MainWindow.nib 文件。那么如何分配我的自定义 UIApplication 来扮演 UIApplication 的角色呢?
彼得指出的Link提供的答案解决了我的问题。
在 Main.m 文件中,我能够以这种方式分配 CustomApplication 和 CustomAppDelegate:
int retVal = UIApplicationMain(argc, argv, @"CustomApplication", NSStringFromClass([CustomApplicationDelegate class]));