首页 > 移动平台 > 详细

IOS开发教程--NSLog输出格式控制

时间:2015-08-19 11:15:14      阅读:154      评论:0      收藏:0      [点我收藏+]

%@ Object

%d, %i signed int

%u unsigned int

%f float/double

%x, %X hexadecimal int

%o octal int

%zu size_t

%p pointer

%e float/double (in scientific notation)

%g float/double (as %f or %e, depending on value)

%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

版权声明:本文为博主原创文章,未经博主允许不得转载。

IOS开发教程--NSLog输出格式控制

原文:http://blog.csdn.net/wanglixin1999/article/details/47776557

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!