在xcode中得到方法名

- (void)testWithString:(NSString *)ss

{

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

}

SEL sl = @selector(testWithString:);

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

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

 

test = yinJiDong 

method = testWithString:

posted @ 2013-01-07 10:59  diablo大王  阅读(153)  评论(0编辑  收藏  举报