nullable书写规范: // 方式一: @property (nonatomic, strong, nullable) NSString *name; // 方式二: @property (nonatomic, strong) NSString *_Nullable name; // 方式三: @property (nonatomic, strong) NSString *__nullable name;
nonnull: non:非 null:空 书写格式: @property (nonatomic, strong, nonnull) NSString *icon; @property (nonatomic, strong) NSString * _Nonnull icon; @property (nonatomic, strong) NSString * __nonnull icon;
// 书写方式: @property (nonatomic, strong, null_resettable) NSString *name; // 注意;如果使用null_resettable,必须 重写get方法或者set方法,处理传递的值为空的情况
书写方式只有这种 方式一 @property (nonatomic, strong) NSString *_Null_unspecified name; 方式二 @property (nonatomic, strong) NSString *__null_unspecified name;
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有