5
说,苹果在私人头文件中定义的API:如果我意外覆盖Apple的私有API,会发生什么情况?
// Can't see this at all
@interface NSThing
- (void)secretMethod;
@end
,我有一个类别:
@interface NSThing (Helpers)
- (void)secretMethod;
@end
这是否超越苹果的实施,将他们的其他私有方法开始打电话到我实施?
如果Apple在它们的私有选择器前面加上下划线,它也会有所帮助,但它们并不总是这样做。感谢您的参考。 – ide
@ide:非常真实。甚至有私人*类*没有NS,UI或前缀的东西。 –