阅读背景:

为什么NSString会响应appendString?

来源:互联网 

I was playing with the respondsToSelector method in Objective-C on MacOS-X 10.6.7 and Xcode 4.0.2, to identify if an object would respond to certain messages. According to the manuals, NSString should not respond to appendString: while NSMutableString should. Here's the piece of code which tests it:I was playing with the respondsToSelector metho




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: