#define LOG_CALLER NSLog(@”Caller: [%@]”, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@”[]”]] objectAtIndex:1]);
轉(zhuǎn)載自別處
#define LOG_CALLER NSLog(@”Caller: [%@]”, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@”[]”]] objectAtIndex:1]);
轉(zhuǎn)載自別處