【发布时间】:2019-09-13 05:52:10
【问题描述】:
当我查看 Objective-C 的头文件 NSObject.h 时,我发现了一些类似以下的代码,但我找不到类作为属性的属性的含义。
@protocol NSSecureCoding <NSCoding>
@required
// This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES.
// The Secure Coding Guide should be consulted when writing methods that decode data.
@property (class, readonly) BOOL supportsSecureCoding;
@end
类属性是什么意思?
【问题讨论】:
标签: objective-c class runtime