NSLog的打印格式
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html
NSLog的格式如下所示:
[*]%@ 对象
[*]%d, %i 整数
[*]%u 无符整形
[*]%f 浮点/双字
[*]%x, %X 二进制整数
[*]%o 八进制整数
[*]%zu size_t
[*]%p 指针
[*]%e 浮点/双字 (科学计算)
[*]%g 浮点/双字
[*]%s C 字符串
[*]%.*s Pascal字符串
[*]%c 字符
[*]%C unichar
[*]%lld 64位长整数(long long)
[*]%llu 无符64位长整数
[*]%Lf 64位双字
页:
[1]