Created
February 10, 2014 06:04
-
-
Save keicoder/8911060 to your computer and use it in GitHub Desktop.
objective-c : AppDelegate basic code with debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AppDelegate basic code with debug | |
#import "AppDelegate.h" | |
@implementation AppDelegate | |
#define debug 1 | |
#pragma mark - didFinishLaunchingWithOptions | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
return YES; | |
} | |
#pragma mark - application 상태 | |
- (void)applicationWillResignActive:(UIApplication *)application | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
} | |
- (void)applicationDidEnterBackground:(UIApplication *)application | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
} | |
- (void)applicationWillEnterForeground:(UIApplication *)application | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
} | |
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
} | |
- (void)applicationWillTerminate:(UIApplication *)application | |
{ | |
if (debug==1) {NSLog(@"Running %@ '%@'", self.class, NSStringFromSelector(_cmd));} | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment