NSLog输出格式
来源:互联网 发布:mac消音软件 编辑:程序博客网 时间:2024/06/08 14:08
%@ Object
%d, %i signed int
%u unsigned int
%f float/double %.2f float/double 保留两位小数
%x, %X hexadecimal int %x02 表示不足两位前面补足两位
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending onvalue)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments,pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
%ld long
这里有苹果官方的说明
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265
- [IPhone] NSLog输出格式
- NSLog 输出格式!
- NSLog 输出格式
- NSLog 输出格式
- NSLog输出的格式
- NSLog输出格式
- NSLog输出格式
- NSLog 输出格式
- NSLog输出格式详解
- NSLog 输出格式
- nslog输出格式
- NSLog输出格式
- NSLog 输出格式
- NSLog输出的格式
- NSLog的输出格式
- NSLog 输出格式
- NSLog 输出格式汇总
- ios输出格式 NSLog
- shell 博大精深。小记
- Ajax方式上传文件
- 版本
- 版本控制软件
- 阿里支付sdk的一点说明
- NSLog输出格式
- 二元空间分割树(BSP)(三)
- linux配置nat
- 合并静态库
- DDos 攻击 学习
- 动态规划2-和ACM大牛的对话
- 单元测试利器 JUnit 4
- BitmapFactory.Options处理图片的缩放
- 持续集成工具hudson