Adds a view to the end of the arranged
array.
SDKs
- iOS 9.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
- (void)addArrangedSubview:(UIView *)view;
Parameters
view
The view to be added to the array of views arranged by the stack.
Discussion
The stack view ensures that the arranged
array is always a subset of its subviews
array. This method automatically adds the provided view as a subview of the stack view, if it is not already. If the view is already a subview, this operation does not alter the subview ordering.