Created
January 25, 2013 03:51
-
-
Save moxuse/4631609 to your computer and use it in GitHub Desktop.
iOS object debug pattern
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
- (id)init | |
{ | |
self = [super init]; | |
if (self) | |
{ | |
NSLog(@"%@: %@", NSStringFromSelector(_cmd), self); | |
} | |
return self; | |
} | |
- (void)dealloc | |
{ | |
NSLog(@"%@: %@", NSStringFromSelector(_cmd), self); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment