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

Skip to content

Commit 84d5936

Browse files
committed
111
1 parent 1794237 commit 84d5936

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

DynamicsDemo/AppDelegate.m

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,24 @@ @implementation AppDelegate
1919
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
2020
RootViewController *root = [[RootViewController alloc]init];
2121

22-
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
22+
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; RootViewController *root = [[RootViewController alloc]init];
23+
2324
RootViewController *root = [[RootViewController alloc]init];
24-
self.window.rootViewController = [[UINavigationController alloc]initWithRootViewController:root];
25+
self.window.ro RootViewController *root = [[RootViewController alloc]init];
26+
otViewController = [[UINavigationController alloc]initWithRootViewController:root];
2527
[self.window makeKeyAndVisible];
2628
RootViewController *root = [[RootViewController alloc]init];
2729

2830
self.window.backgroundColor = [UIColor whiteColor];
2931
return YES;
3032
}
31-
RootViewController *root = [[RootViewController alloc]init];
33+
RootViewController *r RootViewController *root = [[RootViewController alloc]init];
34+
oot = [[RootViewController alloc]init];
3235

33-
- (void)applicationWillResignActive:(UIApplication *)application {
34-
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or RootViewController *root = [[RootViewController alloc]init];
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];
3540
when the user quits the application and it begins the transition to the background state.
3641
// 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.
3742
}

0 commit comments

Comments
 (0)