公告
财富商城
积分规则
提问
发文
2019-01-17 18:37发布
聊天终结者
Can I simply use
if(myString == nil)
For some reason a string that I know is null, is failing this statement.
Notice length = 0 doesn't necessary mean it's nil
NSString *test1 = @""; NSString *test2 = nil;
They are not the same. Although both the length are 0.
Check NSAttributedString is empty:
let isEmpty = atrributedString.string.isEmpty
最多设置5个标签!
Notice length = 0 doesn't necessary mean it's nil
They are not the same. Although both the length are 0.
Check NSAttributedString is empty: