一些常见的属性选项
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
@property (nonatomic, copy) NSDictionary<NSString *, NSNumber *> *multipliers;
@property (nonatomic, copy, readonly) NSArray<RCTDevMenuItem *> *presentedItems;
@property (nonatomic, copy) NSString *gender;
@property (nonatomic, copy) RCTBubblingEventBlock onRNCSliderValueChange;
@property (nonatomic, assign) BOOL isBoldTextEnabled;
@property (nonatomic, assign) NSUInteger maxReloadAttempts;
@property (nonatomic, assign) float step;
@property (nonatomic, assign) CGFloat blurRadius;
@property (nonatomic, assign) RCTResizeMode resizeMode;
@property (nonatomic, weak) id<RCTExceptionsManagerDelegate> delegate;
@property (nonatomic, strong) NSURL *overrideBundleURL;
@property (nonatomic, strong) UIImage *trackImage;
@property (nonatomic, strong, nullable) UIColor *backgroundColor;
|
注意:
@property (nonatomic, copy) NSMutableArray *mArray;
这种声明真的是自己挖坑了;
你要的是可变对象,但是一 copy
就是不可变对象了,运行时会出问题的;