switch (anchorPoint) {
case AnchorPointTopLeft:
point = CGPointMake(0, 0);
break;
点击打开链接
http://blog.csdn.net/a21064346/article/details/8455821
case 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;