View Controller
Jul 17, 2022
Press enter or click to view image in full size![]()
用於新增一個畫面。
Get Iris Liu’s stories in your inbox
Join Medium for free to get updates from this writer.
APP的起始畫面會有一個箭頭(如果沒有箭頭,跑起來會是黑的):
若畫面很多不好拖移箭頭時,可先停在controller上,並勾選is initial view controller
Press enter or click to view image in full size![]()
若要移動畫面位子,可點選長方形後拖移
串起兩個Controller View的方式:
- 在A View的Button上按右鍵,拉到B View
或是按著control,按著滑鼠左鍵拉到B View
Press enter or click to view image in full size![]()
2.在A View的Button上點一下,透過左側的Connections Inspector拉線到B View;未來也可透過此方式看到連接的資訊。
Press enter or click to view image in full size![]()
這種線稱segue /ˈseɡ.weɪ/ 轉場









