首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >得到类似"Format not a string Literal and no format arguments“的警告

得到类似"Format not a string Literal and no format arguments“的警告
EN

Stack Overflow用户
提问于 2012-11-21 14:55:13
回答 1查看 48关注 0票数 0

我在NSAssert(bgTask == UIBackgroundTaskInvalid,nil)行收到上述警告。我在使用IOS SDK6.0的Xcode4.5.1上工作。如果有人知道原因,请让我知道。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-21 14:59:24

"NSAssert"期望NSLog / printf样式的格式字符串作为它的第二个参数。如果您提供了一个(而不是"nil"),该警告将消失。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13487898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档