我有扫描一个字符串,将任何新的线,以用于<br>
HTML的方法。有问题的行是:格式指定类型“无符号短”,但该参数的类型为“INT”
NSCharacterSet *newLineCharacters = [NSCharacterSet characterSetWithCharactersInString:
[NSString stringWithFormat:@"\n\r%C%C%C%C", 0x0085, 0x000C, 0x2028, 0x2029]];
的Xcode让我在这里发出警告:
Format specifies type 'unsigned short' but the argument has type 'int'
它,建议我改变这一切%C
到%d
,但最终证明,打破功能。什么是正确的方式来做到这一点,为什么Xcode推荐错误的东西?