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