AppDelegateをグローバルに使う
.pchファイル に書いておくと appをグローバルに使える
#import <AppDelegate.h> // 共有オブジェクト #define app (AppDelegate *)[[UIApplication sharedApplication] delegate] #define SharedAppDelegate (AppDelegate *)[[UIApplication sharedApplication] delegate]
.pchファイル に書いておくと appをグローバルに使える
#import <AppDelegate.h> // 共有オブジェクト #define app (AppDelegate *)[[UIApplication sharedApplication] delegate] #define SharedAppDelegate (AppDelegate *)[[UIApplication sharedApplication] delegate]