#define LOG_CALLER NSLog(@”Caller: [%@]”, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@”[]”]] objectAtIndex:1]);
转载自别处
#define LOG_CALLER NSLog(@”Caller: [%@]”, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@”[]”]] objectAtIndex:1]);
转载自别处
本文标题:输出 Objective-C 中的方法调用者
本文链接:https://www.haomeiwen.com/subject/stpvjttx.html
网友评论