In the iOS interface layout we can use Cgrectgetmaxx this method to easily get the current control's x-coordinate value + width value, so that the layout can be convenient.
The same cgrectgetmaxy is the value of getting the y-coordinate value + control height, of course, there are a lot of ways we can try this series.
/* 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 ' Rect '. */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