我在Objective-C中听到了一些未知的非脆弱方法。这是什么?
答案 0 :(得分:2)
在Objective-C中没有非脆弱的方法。
另一方面,非脆弱的实例变量是一种机制,它允许修改类的布局,同时保持与不知道布局更改的代码的兼容性。
这对modifying classes in a framework without affecting subclasses residing outside of the framework很有用,它也允许class extensions to define instance variables, including declared properties。