center的用法

(1)先 frame ,决定大小,也就是宽、高

(2)再center,决定位置, 需要注意的是,不能直接写center,需要通过CGPointMake(x,y)赋值

原文地址:https://www.cnblogs.com/lrr0618/p/5530188.html