We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Swift项目中如果使用OC的属性, 例如 V2TIMGroupMemberInfo 模型中的 @Property(nonatomic,strong,readonly) NSString* nickName; 在Swift中默认为必选,这时候nickName为空的时候就会出现崩溃问题。
建议在可能为空的OC属性中加入_Nullable关键字 在Swift中会自动识别为可选。 如 @Property(nonatomic,strong,readonly) NSString*_Nullable nickName;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在Swift项目中如果使用OC的属性,
例如 V2TIMGroupMemberInfo 模型中的
@Property(nonatomic,strong,readonly) NSString* nickName;
在Swift中默认为必选,这时候nickName为空的时候就会出现崩溃问题。
建议在可能为空的OC属性中加入_Nullable关键字 在Swift中会自动识别为可选。
如 @Property(nonatomic,strong,readonly) NSString*_Nullable nickName;
The text was updated successfully, but these errors were encountered: