Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea01dfb

Browse files
committed
乱来
1 parent beafeee commit ea01dfb

File tree

1 file changed

+3
-35
lines changed

1 file changed

+3
-35
lines changed

DynamicsDemo/AppDelegate.m

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,45 +17,13 @@ @implementation AppDelegate
1717

1818

1919
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
20+
21+
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
2022
RootViewController *root = [[RootViewController alloc]init];
21-
22-
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; RootViewController *root = [[RootViewController alloc]init];
23-
24-
RootViewController *root = [[RootViewController alloc]init];
25-
self.window.ro RootViewController *root = [[RootViewController alloc]init];
26-
otViewController = [[UINavigationController alloc]initWithRootViewController:root];
23+
self.window.rootViewController = [[UINavigationController alloc]initWithRootViewController:root];
2724
[self.window makeKeyAndVisible];
28-
RootViewController *root = [[RootViewController alloc]init];
29-
3025
self.window.backgroundColor = [UIColor whiteColor];
3126
return YES;
3227
}
33-
RootViewController *r RootViewController *root = [[RootViewController alloc]init];
34-
oot = [[RootViewController alloc]init];
35-
36-
- (void)applicationWil RootViewController *root = [[RootViewController alloc]init];
37-
lResignActive:(UIApplication *)application {
38-
// Sent when the application is about to move from active to inactive state. This c RootViewController *root = [[RootViewController alloc]init];
39-
an occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or RootViewController *root = [[RootViewController alloc]init];
40-
when the user quits the application and it begins the transition to the background state.
41-
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
42-
}
43-
44-
- (void)applicationDidEnterBackground:(UIApplication *)application {
45-
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
46-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
47-
}
48-
49-
- (void)applicationWillEnterForeground:(UIApplication *)application {
50-
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
51-
}
52-
53-
- (void)applicationDidBecomeActive:(UIApplication *)application {
54-
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
55-
}
56-
57-
- (void)applicationWillTerminate:(UIApplication *)application {
58-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
59-
}
6028

6129
@end

0 commit comments

Comments
 (0)