在xcode中得到方法名

- (void)testWithString:(NSString *)ss

{

    CCLOG(@"test = %@",ss);

}

SEL sl = @selector(testWithString:);

[selfperformSelector:sl withObject:@"yinJiDong"];

CCLOG(@"method = %@",NSStringFromSelector(sl));

 

test = yinJiDong 

method = testWithString:

原文地址:https://www.cnblogs.com/sell/p/2848853.html