Hi all i am working on new app from the beginning.upto now i am using nslog function call to display the output on the gdb.but from the some samples providing me the gdb display with the class and method names.i posted some screenshot for that.can any one guide me to take method name and display name while using nslog().
please provide me some information.Thanks in advance.
NSLog(@"the method is %s", __func__);
__func__ is a builtin macro that expands to the current function or class+method name (it's a standard C string, hence the %s
formatter instead of %@
).