NSLog (@ "%@", Nsstringfromcgrect (Pickerview.frame));
Or
Cfshow (Nsstringfromcgrect (pickerview.frame));
Print Cgsize:nslog (@ "%@", Nsstringfromcgsize (Somecg Size));
The format of the NSLog is as follows:
- %@ Object
- %d,%i integer
- %hi Short-integer
- %lli Long Integral type
- %u no-character shaping
- %f floating point/double word
- %0.2f Precision floating-point number with only two decimal places reserved
- %x,%x binary integer
- %o Eight-binary integers
- %zu size_t
- %p pointer
- %e floating point/double word (scientific calculation)
- %g floating-point/double-word Science and technology method (in the shortest way)
- %s C (char*) string
- %.*s Pascal String
- %c character
- %c Unichar
- %LLD 64-bit long integer
- %llu 64-bit long integer without character
- %LF 64-bit double word
- %lu sizeof (i) the amount of bytes in memory
There are similar objects, such as cgrect,cgsize, such as print cgrect:nslog (@ "%@", Nsstringfromcgrect (Somecgrect)), Print cgsize:nslog (@ "%@", Nsstringfromcgsize (SOMECG Size)); The others are:
NSStringFromCGPoint NSStringFromCGAffineTransform NSStringFromUIEdgeInsets
Format for iOS print frame