MainApp.h
上传用户:qhdwjd2004
上传日期:2020-12-29
资源大小:362k
文件大小:1k
源码类别:

iPhone

开发平台:

Objective-C

  1. #import <Foundation/Foundation.h>
  2. #import <CoreFoundation/CoreFoundation.h>
  3. #import <UIKit/UIKit.h>
  4. #import <UIKit/UIApplication.h>
  5. #import <UIKit/CDStructures.h>
  6. #import <UIKit/UIWindow.h>
  7. #import <UIKit/UIView-Hierarchy.h>
  8. #import <UIKit/UIHardware.h>
  9. #import <CoreSurface/CoreSurface.h>
  10. #import "MainView.h"
  11. @interface MainApp : UIApplication
  12. {
  13.     UIWindow                *window;
  14.     MainView                  *mainView;
  15. }
  16. // 程序加载完毕
  17. - (void) applicationDidFinishLaunching: (id) unused;
  18. // 设备方向变化
  19. - (void)deviceOrientationChanged:(GSEvent *)event;
  20. // 屏幕锁定
  21. - (void)applicationWillSuspendUnderLock:(struct __GSEvent *)event;
  22. // 被电话等事件中断
  23. - (void)applicationWillSuspendForEventsOnly:(struct __GSEvent *)event;
  24. // home 按钮按下(及所有中断的最终处理)
  25. - (void)applicationSuspend:(struct __GSEvent *)event;
  26. // 屏幕解锁
  27. - (void)applicationDidResumeFromUnderLock:(struct __GSEvent *)event;
  28. // 从中断事件中恢复(接完电话)
  29. - (void)applicationDidResumeForEventsOnly:(struct __GSEvent *)event;
  30. // 状态恢复(从所有中断中恢复)
  31. - (void)applicationDidResume:(struct __GSEvent *)event;
  32. // 程序结束
  33. - (void)applicationWillTerminate;
  34. @end