您的位置:首页 > 移动开发 > IOS开发

在iOS和OSX双平台上的字符串格式化

2015-12-03 14:43 239 查看
参考: https://twitter.com/gparker/status/377910611453046784

%zd, %tu, %tx (signed, unsigned, hex) currently format NSInteger and NSUInteger with
no warnings.

也就是说: 

NSInteger 用 %zd

NSUInteger 用 %tu

16进制格式 用 %tx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: