1 2 |
protoc ./test.proto --objc_out=./ |
调用无参方法
1 2 3 4 5 6 |
Class class = NSClassFromString(@"classA"); SEL selector = NSSelectorFromString(@"方法名"); IMP imp = [class methodForSelector:selector]; void (*func)(id, SEL) = (void *)imp; func(class, selector); |
有参有返回值方法 [crayo