const 定义警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
来源:互联网 发布:传智播客的java视频 编辑:程序博客网 时间:2024/05/29 09:46
const NSString * STOP_PRINT = @"停止打印";
在使用的地方出现警告
[barItem setTitle:STOP_PRINT];
Sending 'const NSString *__strong' to parameter of type'NSString * _Nullable' discards qualifiers
讲const的位置放在*后面即可
NSString * const STOP_PRINT = @"停止打印";
0 0
- const 定义警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
- 解决 sending 'const NSString *' to parameter of type 'NSString *' discards qualifiers
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'
- Sending 'xxx *const __strong' to parameter of incompatible type 'id<aDelegate>'
- Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id<******Delegate>'
- Sending 'NSProgress *__strong *' to parameter of incompatible type 'void (^ _Nullable)(NSProgress *
- Cannot initialize a parameter of type 'NSString *_Nullable' with an rvalue of type ''UITouchPhase"
- 报错原因:Incompatible pointer types sending 'UIImage *' to parameter of type 'NSString * _Nonnull'
- Sending 'ShareView *const _strong' to parameter of incompatible type 'id<UIAlertViewDelegate>'
- cast of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __C
- 【IOS异常汇总】之 implicit conversion of Object-C pointer type"NSString *" to C pointer type "const void *"
- 警告解决办法sending 'viewcontroller *' to parameter of incompatible type 'id UMSocialUIDelegate
- Assigning to ‘id<UIWebViewDelegate>’ from incompatible type 'xxxViewController *const __strong'
- Assigning to ‘ d<xxxxDelegate>' from incompatible type ‘xxViewController *const __strong'
- Assigning to 'id<xxxxDelegate>' from incompatible type 'xxxxViewController *const __strong'
- passing 'char[16]' to parameter of type 'const u8*' (aka 'const unsigned char*') converts between p
- Sending 'ViewController' to Parameter of Incompatible Type 'id<xxxDelegate>'
- spring mvc 后台上传图片 前台缓存304的设置
- android webview sdk app tutorial 01 界面
- iploc
- JavaScript 认识DOM篇(慕课学习笔记)
- 字符串最后一个单词的长度
- const 定义警告 Sending 'const NSString *__strong' to parameter of type 'NSString * _Nullable'...
- 在LCD液晶屏成功显示图片
- MySQL数据库学习——存储过程
- 断更反思
- 网络配置
- 如何在Linux—ubuntu16.04版本下安装JAVA环境(jdk&eclipse)
- spring mvc+mybatis笔记(二)
- GlassFish4 deploy 部署应用 快速入门
- Android实现发送语音,可限制语音时间,对用户手势判断