frame、bounds、center、anchorPoint、position

今天繼續完善代碼時在anchorPoint遇到點小問題,忘記了其值是從0到1,而錯誤的賦予了很大的值,致使spirit沒能出如今界面上,由此重溫了一下關於frame、bounds、center、anchorPoint、position的內容。web frame = (0,0,40,50):四個值分別爲本視圖的左上角在父視圖中的座標系的x和y值,視圖的寬高,改變此值可變更本視圖與父視圖的相對位置,但
相關文章
相關標籤/搜索