Format for iOS print frame

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.