@interface NSNull (JSON)
@end
@implementation NSNull (JSON)
- (NSUInteger)length {
return 0;
}
- (NSInteger)integerValue {
return 0;
};
- (float)floatValue { return 0; };
- (NSString *)description {
return @"";
}
- (NSArray *)componentsSeparatedByString:(NSString *)separator {
return @[];
}
@end
NSNull报错
最新推荐文章于 2022-02-23 14:28:28 发布