1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#import <TargetConditionals.h> #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end #else #import <Cocoa/Cocoa.h> @interface AppDelegate : NSObject <NSApplicationDelegate> @end #endif