본문 바로가기

Programming/Swift

UIStackView

A streamlined interface for laying out a collection of views in either a column or a row.

 

Declaration

class UIStackView : UIView

 

Overview

Stack views let you leverage the power of Auto Layout, creating user interfaces that can dynamically adapt to the device’s orientation, screen size, and any changes in the available space. The stack view manages the layout of all the views in its arrangedSubviews property. These views are arranged along the stack view’s axis, based on their order in the arrangedSubviews array. The exact layout varies depending on the stack view’s axis, distribution, alignment, spacing, and other properties.

developer.apple.com/documentation/uikit/uistackview

 

Apple Developer Documentation

 

developer.apple.com

 

'Programming > Swift' 카테고리의 다른 글

Swift, iOS공부하면서 참고하면 좋은 사이트들  (0) 2020.10.16
window  (0) 2020.10.16
Delegation  (0) 2020.10.15
Class: UIControl  (0) 2020.10.14
Difference between viewdidappear and viewwillappear in swift  (0) 2020.10.14