MainApp.h
资源名称:PushBox.rar [点击查看]
上传用户:qhdwjd2004
上传日期:2020-12-29
资源大小:362k
文件大小:1k
源码类别:
iPhone
开发平台:
Objective-C
- #import <Foundation/Foundation.h>
- #import <CoreFoundation/CoreFoundation.h>
- #import <UIKit/UIKit.h>
- #import <UIKit/UIApplication.h>
- #import <UIKit/CDStructures.h>
- #import <UIKit/UIWindow.h>
- #import <UIKit/UIView-Hierarchy.h>
- #import <UIKit/UIHardware.h>
- #import <CoreSurface/CoreSurface.h>
- #import "MainView.h"
- @interface MainApp : UIApplication
- {
- UIWindow *window;
- MainView *mainView;
- }
- // 程序加载完毕
- - (void) applicationDidFinishLaunching: (id) unused;
- // 设备方向变化
- - (void)deviceOrientationChanged:(GSEvent *)event;
- // 屏幕锁定
- - (void)applicationWillSuspendUnderLock:(struct __GSEvent *)event;
- // 被电话等事件中断
- - (void)applicationWillSuspendForEventsOnly:(struct __GSEvent *)event;
- // home 按钮按下(及所有中断的最终处理)
- - (void)applicationSuspend:(struct __GSEvent *)event;
- // 屏幕解锁
- - (void)applicationDidResumeFromUnderLock:(struct __GSEvent *)event;
- // 从中断事件中恢复(接完电话)
- - (void)applicationDidResumeForEventsOnly:(struct __GSEvent *)event;
- // 状态恢复(从所有中断中恢复)
- - (void)applicationDidResume:(struct __GSEvent *)event;
- // 程序结束
- - (void)applicationWillTerminate;
- @end