Where does a Swift iOS application begin its life?
问题 If I create an Objective-C iOS application in Xcode, a file named main.m is generated. The contents of the file look something like this: main.m #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } And this is where an Objective-C iOS application begins its life. Importantly, if I want to subclass UIApplication (for whatever reason), then here is where I go