Files
mcp_screen/iphone_app/IMCAppDelegate.m
T
2026-06-21 21:27:06 -04:00

24 lines
680 B
Objective-C

#import "IMCAppDelegate.h"
#import "IMCViewController.h"
@implementation IMCAppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
application.idleTimerDisabled = YES;
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
self.window.rootViewController = [[IMCViewController alloc] init];
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
application.idleTimerDisabled = YES;
}
- (void)applicationWillTerminate:(UIApplication *)application {
application.idleTimerDisabled = NO;
}
@end