iOS development cgrectgetmidx. Cgrectgetmidy.cgrectgetminy. Cgrectgetmaxy. Cgrectgetminx. Use of Cgrectgetmaxx

Source: Internet
Author: User

UILabel *label = [[UILabel alloc]initwithframe:cgrectmake (10,10,110,150)];Label.backgroundcolor = [Uicolor Orangecolor]; [Self.view Addsubview:Label];/* Cgrectgetheight Returns the height of the label itself Cgrectgetminy returns the coordinates at the top of the label Cgrectgetmaxy returns the coordinates at the bottom of the label Cgrectgetminx returns the coordinates of the left edge of the label Cgrectgetmaxx returns the coordinates of the right edge of the label CGRECTGETMIDX represents the x-coordinate of the center point of a frame cgrectgetmidy represents the y-coordinate of the center point of a frame */NSLog (@"Cgrectgetheight--%f", Cgrectgetheight (Label.frame)); NSLog (@"Cgrectgetmaxx--%f", Cgrectgetmaxx (Label.frame)); NSLog (@"Cgrectgetmaxy--%f", Cgrectgetmaxy (Label.frame)); NSLog (@"Cgrectgetmidx--%f", Cgrectgetmidx (Label.frame)); NSLog (@"Cgrectgetmidy--%f", Cgrectgetmidy (Label.frame)); NSLog (@"Cgrectgetminx--%f", Cgrectgetminx (Label.frame)); NSLog (@"Cgrectgetminy--%f", Cgrectgetminy (Label.frame));2015-14L2415:39:15.577 webview[15743:677046] Cgrectgetheight--150.0000002015-14L2415:39:15.577 webview[15743:677046] Cgrectgetmaxx--120.0000002015-14L2415:39:15.577 webview[15743:677046] Cgrectgetmaxy--160.0000002015-14L2415:39:15.577 webview[15743:677046] Cgrectgetmidx--65.0000002015-04-2415:39:15.578 webView[15743:677046" Cgrectgetmidy--85.000000 2015-04-24 15 : 39:15.578 webview[15743:677046] cgrectgetminx--10.000000 2015-< Span class= "Hljs-number" >04-24 15: 39:15.578 webview[15743:677046] Cgrectgetminy--10.000000         

iOS development cgrectgetmidx. Cgrectgetmidy.cgrectgetminy. Cgrectgetmaxy. Cgrectgetminx. Use of the Cgrectgetmaxx

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.