OLD | NEW |
(Empty) | |
| 1 #import "AppDelegate.h" |
| 2 #import "swift_ios-Swift.h" |
| 3 #import "MyObjcClass.h" |
| 4 |
| 5 @interface AppDelegate () |
| 6 |
| 7 @property(nonatomic, strong) MySwiftClass* swiftField; |
| 8 |
| 9 @end |
| 10 |
| 11 @implementation AppDelegate |
| 12 |
| 13 - (BOOL)application:(UIApplication*)application |
| 14 didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { |
| 15 CGRect bounds = [[UIScreen mainScreen] nativeBounds]; |
| 16 self.window = [[UIWindow alloc] initWithFrame:bounds]; |
| 17 self.window.rootViewController = [[UIViewController alloc] init]; |
| 18 [self.window makeKeyAndVisible]; |
| 19 |
| 20 self.swiftField = [[MySwiftClass alloc] init]; |
| 21 |
| 22 return YES; |
| 23 } |
| 24 |
| 25 - (void)applicationWillResignActive:(UIApplication*)application { |
| 26 } |
| 27 |
| 28 - (void)applicationDidEnterBackground:(UIApplication*)application { |
| 29 } |
| 30 |
| 31 - (void)applicationWillEnterForeground:(UIApplication*)application { |
| 32 } |
| 33 |
| 34 - (void)applicationDidBecomeActive:(UIApplication*)application { |
| 35 } |
| 36 |
| 37 - (void)applicationWillTerminate:(UIApplication*)application { |
| 38 } |
| 39 |
| 40 @end |
OLD | NEW |