http://stackoverflow.com/questions/4418233/cmd-value-inside-c-functions
The first two parameters passed to all Objective-C methods are self and _cmd, then whatever other arguments the actual method takes.
1 2 3 |
-(void)erase { NSLog(@"%@", NSStringFromSelector(_cmd)); } |