NSLog中的基础数据类型 输出格式: NSLog("")
short int: %hi %hx %ho
unsigned short int: %hu %hx %ho %hu %hx %ho
int: %i %x %o
unsigned int: %u %x %o
long int: %li %lx %lo
unsigned long int: %lu %lx %lo
long long int: %lli %llx &llo
unsigned long long int: %llu %llx %llo
float: %f %e %g %a
double: %f %e %g %a
long double: %Lf $Le %Lg
Id\指针: %p

本文详细介绍了在Objective-C中使用NSLog进行各种基础数据类型输出的格式标准,包括字符、整型、浮点数等的数据打印格式。
895

被折叠的 条评论
为什么被折叠?



