Xcode报警告⚠:
Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified
的时候,给方法加参数和给block加参数使用的关键字写法是不同的。
nullable,__nullable,_Nullable。
- (nullable UIAlertController *)yesOrNoAlertWithTitle:(nullable NSString *)title
message:(nullable NSString *)message
yesAction:(void (^ __nullable)(UIAlertAction * _Nullable action))yesAction
noAction:(void (^ __nullable)(UIAlertAction * _Nullable action))noAction
yesButtonTitle:(nullable NSString *)yesTitle
noButtonTitle:(nullable NSString *)noTitle;