respondsToSelector
- (BOOL)respondsToSelector:(SEL)aSelector
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message. (required)
Paraments:aSelector: A selector that identifies a message.
Return:YES if the receiver implements or inherits a method that can respond to aSelector, otherwise NO.
判断是否实现了方法。
http://www.cnblogs.com/chenjunbiao/archive/2011/04/21/2023196.html
作者:老Zhan
出处:http://www.cnblogs.com/mybkn/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。