基础数据类型的实例与在NSLog中使用的占位符 类型 NSLog char %c 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 longint %lu,%lx,%lo long long int %lli,%llx,%llo unsigned longlong int %llu,%llx,%llo float %f,%e,%g,%a double %f,%e,%g,%a long double %Lf,$Le,%Lg id %p(或者%@?)
|