在xcode中得到方法名

- (void)testWithString:(NSString *)ss

{

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

}

SEL sl = @selector(testWithString:);

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

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

 

test = yinJiDong 

method = testWithString:

你可能感兴趣的:(xcode)