美文网首页
NSLog输出格式大全(转)

NSLog输出格式大全(转)

作者: 博尔茨杰 | 来源:发表于2016-06-28 15:39 被阅读38次

%@ 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

相关文章

网友评论

      本文标题:NSLog输出格式大全(转)

      本文链接:https://www.haomeiwen.com/subject/tjytjttx.html