티스토리 뷰
[iOS 오토레이아웃 Views with Intrinsic Content Size] Fixed Height Columns
2018/08/01 - [iOS] - [iOS 오토레이아웃 Views with Intrinsic Content Size] Fixed Height Columns
그렇게 어렵지 않습니다만, 추가해야할 제약조건이 많이 늘어나기 때문에 상당히 귀찮습니다. 개념자체는 위 2개 예제랑 같기 때문에 굳이 안 해보셔도 될 것 같습니다. 다만 한가지 해결해야할 사항과 과제가 있습니다.
View and Constraints
First Name Label.Top >= Safe area.top + 20.0
First Name Label.Top = Safe area.top + 20.0 (Priority 249)
First Name Text Field.Top >= Safe area.top + 20.0
First Name Text Field.Top = Safe area.top + 20.0 (Priority 249)
Middle Name Label.Top >= First Name Label.Bottom + Standard
Middle Name Label.Top = First Name Label.Bottom + Standard (Priority 249)
Middle Name Text Field.Top >= First Name Text Field.Bottom + Standard
Middle Name Text Field.Top = First Name Text Field.Bottom + Standard (Priority 249)
Last Name Label.Top >= Middle Name Label.Bottom + Standard
Last Name Label.Top = Middle Name Label.Bottom + Standard (Priority 249)
Last Name Text Field.Top >= Middle Name Text Field.Bottom + Standard
Last Name Text Field.Top = Middle Name Text Field.Bottom + Standard (Priority 249)
요정도가 추가 되면 되겠네요.
Atrributes
Discussion
2018/05/21 - [iOS] - [iOS Autolayout] Why stackViews first, constraints later