根据官方的属性说明默认应该为nil
@property(nullable, nonatomic,copy) NSString *text; // default is nil
但是为什么我使用如下代码在没有输入任何东西的情况下会显示222
NSString *title = [_titleTextField text]; if (title == nil){ printf("222"); }
闭关修行中......
The text attribute defaults to an empty string @"", which is different from nil
The text attribute defaults to an empty string @"", which is different from nil