iOS 关键字

49 阅读1分钟

__kindof(iOS 9)

一般用来修饰方法的返回值,表示返回值可以是当前类及其子类。

写法:

@property (nonatomic, strong) NSArray<__kindof UIView *> *views;