我們通常用view的frame、bounds和center來決定view的幾何位置。在坐標系中,通過frame我們可以決定view在其父視圖(superview)中的位置和大小。bounds表示的是view自己的坐標系統(tǒng),通常用于改變view自身。bounds和frame的size是相關(guān)聯(lián)的,改變他們中任一個的size都會使另一個跟著改變。center用于調(diào)整view的位置而無需改變view的大小。
參考下圖:

View B’s bounds= ((0,0),(200,250))
View B’s frame= ((140,65),(320,320))
View B’s center= (300,225)