锚点 对应的位置

来源:互联网 发布:图书管理程序java作业 编辑:程序博客网 时间:2024/04/30 05:19

switch (anchorPoint) {case AnchorPointTopLeft:point = CGPointMake(0, 0);break;点击打开链接
http://blog.csdn.net/a21064346/article/details/8455821case AnchorPointTopCenter:point = CGPointMake(0.5, 0);break;case AnchorPointTopRight:point = CGPointMake(1, 0);break;case AnchorPointMiddleLeft:point = CGPointMake(0, 0.5);break;case AnchorPointCenter:point = CGPointMake(0.5, 0.5);break;case AnchorPointMiddleRight:point = CGPointMake(1, 0.5);break;case AnchorPointBottomLeft:point = CGPointMake(0, 1);break;case AnchorPointBottomCenter:point = CGPointMake(0.5, 1);break;case AnchorPointBottomRight:point = CGPointMake(1, 1);break;default:break;