<font color="#8A2BE2">[Udemy IOS Angela]</font> Ch6 Auto Layout and Responsive UIs === # Ch6 ## 59. 為什麼要Auto Layout 因為沒做的話,一旋轉,換面就破壞了 * Size classes * Constrain * Alignment and Pinning * Containers * StackViews ## 60. Size Classes Explain | Column 1 | Column 2 | | | -------- | -------- | -------- | |  |  | | ```swift= Command + R 重新run一次模擬器 ``` ## 61. Setting Constraints and working with the Safe Area   右邊trailing變成Superview  上方要保留不全滿版(改safe area.top)  ## 62. How to use Alignment and Pinning 背景  Logo 距離圖片保持30距離  水平至中  ## 63. Working with Containers and Subviews 背景調整  使用 Library+ UIView (是一張白底紙)貼上  左側View要再上方,顯示才會是下層  方法2 上方欄位 插入view  方法3 右下角 插入view   幫View命名   ## 64. Stack Views 方法1  方法2  Stack View完成 (這一章需要多練習,搭配影片再複習)  ## 65. Auto Layout (Optional) Boss Challenge | 目標 | 初始橫式 | 初始直式 | | -------- | -------- | -------- | | |  || 我完成的 (應該要平均放大填滿,即完成)   參考解答後   解題過程 水平 Stack View 每一行  垂直的Stack View 每一列  垂直的Stack View 間距0   Alightment 改 Fill  水平Stack View改 Fill Equally  右下角兩個改 Stack View  最下層 水平 Stack View改 Fill Equally  距離底部有距離 safe area  數字0 Label 加上 view  數字0 Label 加上距離  完成  ###### tags: `[Udemy IOS Angela Yu]`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up