阅读背景:

具有合成readonly属性的类的子类不能访问Objective-C中的实例变量

来源:互联网 

In the superclass MyClass:

在超类MyClass:

@interface MyClass : NSObject

@property (nonatomic, strong, readonly) NSString *pString;

@end

@implementation MyClass

@synthesize pString = _pString;

@end
@int



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

分享到: