iOS CoreAnimation(四) anchorPoint錨點是什麼

在瞭解錨點之前,要知道:  UIView 有三個重要的佈局屬性: frame,bounds,center   CALayer對應地叫做: frame,bounds,position 爲了能清楚區分,圖層用了「position」,視圖用了「center」,但是他們都代表同樣的值 。現在不用知道這倆是什麼,往下看。 frame:在父圖層上佔據的空間,包括 x,y,長,寬  bounds是內部座標,{0
相關文章
相關標籤/搜索