티스토리 뷰

iOS

iOS AutoLayout

rhinoPHS 2018. 5. 20. 16:51


iOS AutoLayout

- What

다양한 iOS 기기 화면에 유연하게 대응하기 위해 만들어 졌습니다. 




- How

Seven Commandments of AutoLayout And Guiding Principles of AutoLayout  - from Udacity's AutoLayout Lecture


 - Guiding Principles of AutoLayout

  1. stackViews first, constraints later  

  2. start small, or not at all

  3. work from the inside out

  4. Trust the simulator only

  5. Don't panic


- Seven Commandments of AutoLayout

  1. Tweak The properties of the StackView

  2. Use another StackView

  3. Tweak the compression resistance or the hugging priority

  4. Add constraints to the StackView

  5. Add constraints to the views

  6. To connect Views within different StackViews, use 5

  7. If everything else fails, use a filler view(?)



2018/07/05 - [iOS] - [ios autolayout ]What is the StackView

2018/07/11 - [iOS] - [ios autolayout] simple stackview

2018/07/14 - [iOS] - [IOS AUTOLAYOUT] Nested Stack Views

2018/07/18 - [iOS] - [IOS AUTO LAYOUT] Dynamic Stack View



반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함