format string is not a string literal potentially

1     //在xcode45-DP2下使用
2     [NSString stringWithFormat:@""];
3     //会有这个警告
4     //format string is not a string literal (potentially insecure)
5     //加个nil既可解决
6     [NSString stringWithFormat:@"",nil];
posted @ 2012-08-10 17:02  Mr.Songz  阅读(331)  评论(0编辑  收藏  举报