iOS开发CGRectGetMidX. CGRectGetMidY.CGRectGetMinY. CGRectGetMaxY. CGRectGetMinX. CGRectGetMaxX的使用

【iOS开发】iOS开发CGRectGetMidX. CGRectGetMidY.CGRectGetMinY. CGRectGetMaxY. CGRectGetMinX. CGRectGetMaxX的使用

/*
     CGRectGetHeight返回label本身的高度
     CGRectGetMinY返回label顶部的坐标
     CGRectGetMaxY 返回label底部的坐标
     CGRectGetMinX 返回label左边缘的坐标
     CGRectGetMaxX 返回label右边缘的坐标
     CGRectGetMidX表示得到一个frame中心点的X坐标
     CGRectGetMidY表示得到一个frame中心点的Y坐标
     */

 

posted @ 2017-09-06 20:30  chihbun  阅读(633)  评论(0编辑  收藏  举报