iOS中Data argument not used by format string的警告处理
来源:互联网 发布:买跌停股 知乎 编辑:程序博客网 时间:2024/06/05 13:39
Data argument not used by format string的警告被引起的原因:
如 int index;
NSLog(@"index:", index);
[menuButton setImage:[UIImage imageNamed:[NSString stringWithFormat:@"menu0.png", index]] forState:UIButtonTypeCustom];
中没有index对应的格式引起的。
将其修改为:
NSLog(@"index:%d", index);
[menuButton setImage:[UIImage imageNamed:[NSString stringWithFormat:@"menu%d.png", index]] forState:UIButtonTypeCustom];
警告就消失了!
- iOS中Data argument not used by format string的警告处理
- data argument not used by format string
- iOS之整型转换警告Values of type 'NSInteger' should not be used as format arguments;
- iOS 整型转换警告"NSInteger' should not be used as format arguments; add an explicit cast to 'long' inste"
- 解决编译时出现的警告:format string is not a string literal (potentially insecure)
- 解决编译时出现的警告:format string is not a string literal (potentially insecure)
- iOS UIViewController 对内存警告的处理经验 by bishop
- [iOS]Xcode中警告处理
- 去掉IOS开发过程中L not found的警告
- PB String ( data, { format } )
- Xcode 警告信息处理:Format string is not a string literal (potentially insecure)
- IOS警告:Property access result unused - getters should not be used for side effects
- emulator: ERROR: the user data image is used by another emulator. 处理
- string.Format 处理 double 的问题
- 关于tomcat启动时的警告 :maxActive is not used inDBCP2
- Name for argument type [java.lang.String] not available......bug处理
- 解决python中TypeError: not enough arguments for format string
- 解决python中TypeError: not enough arguments for format string
- Linux下的LED子系统
- 移动开发设计,用户体验之我见
- CentOS下用命令查看IP地址
- iOS学习之iOS沙盒(sandbox)机制和文件操作(二)
- 游戏人生
- iOS中Data argument not used by format string的警告处理
- Ubuntu使用北交大服务器源
- sizeof操作符详解一
- (*((void (*)())0))() 函数指针
- IOS 学习链接
- cocos2d-x框架中基本概念
- Linux下产生日志并定期删除
- iOS学习之iOS沙盒(sandbox)机制和文件操作之NSFileManager(三)
- VS2005/VS2008程序打包发布(截图详解版)