%@ Object
%d,%i integral type (%i's old notation)
%HD Short-integer
%ld,%lld Long Integer
%u no-character integer
%f floating-point and double type
%0.2f Precision floating-point number, reserved only two decimal places
%x: A 32-bit unsigned integer number (unsigned int), printed using the number 0-9 hexadecimal, lowercase a-f;
%x: A 32-bit unsigned integer number (unsigned int), printed using the number 0-9 hexadecimal, uppercase a-f;
%o Octal
%zu/%zd Size_t/nsinteger
%p Pointer Address
%e float/double (Scientific counting)
%g float/double (Scientific counting)
%s char * string
%.*s Pascal String
%c Char Character
%c Unichar
%LF 64-bit double
%lu sizeof (i) the amount of bytes in memory
Print Cgrect:nslog (@ "%@", Nsstringfromcgrect (Somecgrect)); Or
Cfshow (Nsstringfromcgrect (somecgrect)); Cfshow () Print Core Foundation Object
Print Cgsize:nslog (@ "%@", Nsstringfromcgsize (Somecg Size));
Print OC Method Name: NSLog (@ "%s", sel_getname (sel sel));
NSLog (@ "%s", __func__);
iOS nslog output format Daquan