小编NSC*_*der的帖子

Unicode格式编译器警告:Format指定类型'unsigned short'但参数的类型为'int'

这是一个有点强迫症,但我讨厌得到任何编译器警告.当我更新XCode时,我开始收到此编译器警告:

Format指定类型'unsigned short'但参数的类型为'int'

当我尝试使用以下代码包含Unicode字符的度数时:

currentVal = [NSString stringWithFormat:@"%.2f%C", angleDeg, 0x00B0];
Run Code Online (Sandbox Code Playgroud)

如何通过更改代码或关闭特定编译器警告来使编译器警告消失?

unicode xcode objective-c nsstring ios

5
推荐指数
1
解决办法
1613
查看次数

标签 统计

ios ×1

nsstring ×1

objective-c ×1

unicode ×1

xcode ×1