SEL selector = NSSelectorFromString(methodString);
if ([self respondsToSelector:selector]) {
//[self performSelector:selector withObject:parameterString];
MP imp = [self methodForSelector:selector];
void (*func)(id, SEL, NSString *) = (void *)imp;
func(self, selector, URLString);
}
1
wuyuchenshishabi 2015-01-22 15:14:15 +08:00
你想说什么?。。
|
2
dcty 2015-01-22 15:16:10 +08:00
我表示完全没看懂
|
3
rannie 2015-01-22 16:09:39 +08:00
不知所云=。=
|
4
bupo 2015-01-22 18:14:35 +08:00 1
lz估计是想让我等学习一下他的新发现
|