In the iOS interface layout we are able to use Cgrectgetmaxx as a convenient way to get the value of the current control's x-coordinate + width. This makes it easy to layout.
The same cgrectgetmaxy is the value of getting the y-coordinate value + control height, of course, there are a lot of methods in this series that we can try.
/* Return the leftmost x-value of ' rect '. */cg_extern cgfloat Cgrectgetminx (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the midpoint X-value of ' rect '. */cg_extern cgfloat cgrectgetmidx (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the rightmost X-value of ' rect '. */cg_extern cgfloat Cgrectgetmaxx (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the bottommost y-value of ' rect '. */cg_extern cgfloat cgrectgetminy (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the midpoint Y-value of ' rect '. */cg_extern cgfloat cgrectgetmidy (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the topmost Y-value of ' rect '. */cg_extern cgfloat cgrectgetmaxy (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the width of ' r ECT '. */cg_extern cgfloat cgrectgetwidth (cgrect rect) cg_available_starting (__mac_10_0, __IPHONE_2_0);/* Return the height of ' Rect '. */cg_exterN cgfloat cgrectgetheight (cgrect rect) cg_available_starting (__mac_10_0, __iphone_2_0);
IOS cgrectgetmaxx/y Use