参考讨论performSelector其中解释了以下行可以调用方法
SEL aSelector = findTheAppropriateSelectorForTheCurrentSituation();
[anObject performSelector: aSelector];
我的问题是调用的方法的内容是什么:
findTheAppropriateSelectorForTheCurrentSituation()?//对我来说最重要的问题
还有一个问题是,为什么我在使用这段代码时会收到警告。
1.warning:函数'findTheAppropriateSelectorForTheCurrentSituation'的隐式声明
2.warning:初始化使指针从整数而不进行
强制转换 3.“_findTheAppropriateSelectorForTheCurrentSituation”,引用自:
提前感谢您的回答