Objective c Unicode格式编译器警告:格式指定类型';无符号短';但参数的类型为';int';

Objective c Unicode格式编译器警告:格式指定类型';无符号短';但参数的类型为';int';,objective-c,ios,xcode,unicode,nsstring,Objective C,Ios,Xcode,Unicode,Nsstring,这有点强迫症,但我讨厌收到任何编译器警告。当我更新XCode时,我开始收到以下编译器警告: 格式指定类型“unsigned short”,但参数的类型为“int” 当我尝试使用以下代码包含学位的Unicode字符时: currentVal = [NSString stringWithFormat:@"%.2f%C", angleDeg, 0x00B0]; 如何通过更改代码或关闭特定的编译器警告来消除编译器警告?将文本转换为unichar: currentVal = [NSString stri

这有点强迫症,但我讨厌收到任何编译器警告。当我更新XCode时,我开始收到以下编译器警告:

格式指定类型“unsigned short”,但参数的类型为“int”

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

currentVal = [NSString stringWithFormat:@"%.2f%C", angleDeg, 0x00B0];

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

将文本转换为
unichar

currentVal = [NSString stringWithFormat:@"%.2f%C", angleDeg, (unichar)0x00B0];