NSLog the method name with Objective-C in iPhone
To technically answer your question, you want:
NSLog(@"<%@:%@:%d>", NSStringFromClass([self class]), NSStringFromSelector(_cmd), __LINE__);
Or you could also do:
NSLog(@"%s", __PRETTY_FUNCTION__);
print(__FUNCTION__) // Swift
NSLog(@"%@", NSStringFromSelector(_cmd)); // Objective-C
Swift 3 and above
print(#function)