FileManager.m
上传用户:xy800802
上传日期:2020-12-29
资源大小:194k
文件大小:1k
- #import "FileManager.h"
- #import "MainView.h"
- @implementation FileManager
- // 程序加载完毕
- - (void) applicationDidFinishLaunching: (id) unused
- {
- NSLog(@"Launching ...");
- CGRect windowRect = [ UIHardware fullScreenApplicationContentRect ];
- window = [[UIWindow alloc] initWithContentRect: windowRect];
-
- CGRect viewRect = [ UIHardware fullScreenApplicationContentRect ];
- viewRect.origin.x = viewRect.origin.y = 0.0f;
- mainView = [ [ MainView alloc ] initWithFrame: viewRect ];
- [ window setContentView: mainView ];
- [ window orderFront: self ];
- [ window makeKey: self ];
- [ window _setHidden: NO ];
-
- NSLog(@"Launching Finish!");
- }
- // 屏幕锁定
- - (void)applicationWillSuspendUnderLock:(struct __GSEvent *)event
- {
- }
- // 被电话等事件中断
- - (void)applicationWillSuspendForEventsOnly:(struct __GSEvent *)event
- {
- }
- // home 按钮按下(及所有中断的最终处理)
- - (void)applicationSuspend:(struct __GSEvent *)event
- {
- [ self terminate ];
- }
- // 屏幕解锁
- - (void)applicationDidResumeFromUnderLock:(struct __GSEvent *)event
- {
- }
- // 从中断事件中恢复(接完电话)
- - (void)applicationDidResumeForEventsOnly:(struct __GSEvent *)event
- {
- }
- // 状态恢复(从所有中断中恢复)
- - (void)applicationDidResume:(struct __GSEvent *)event
- {
- }
- // 程序结束
- - (void)applicationWillTerminate
- {
- }
- @end