美文网首页
输出 Objective-C 中的方法调用者

输出 Objective-C 中的方法调用者

作者: petter102 | 来源:发表于2016-07-20 13:52 被阅读206次
     #define LOG_CALLER NSLog(@”Caller: [%@]”, [[[[NSThread callStackSymbols] objectAtIndex:1] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@”[]”]] objectAtIndex:1]);
    

    转载自别处

    相关文章

      网友评论

          本文标题:输出 Objective-C 中的方法调用者

          本文链接:https://www.haomeiwen.com/subject/stpvjttx.html