Inserts a subview at the specified index.
- iOS 2.0+
- tvOS 9.0+
The view to insert. This value cannot be
The index in the array of the
subviewsproperty at which to insert the view. Subview indices start at
0and cannot be greater than the number of subviews.
This method establishes a strong reference to
view and sets its next responder to the receiver, which is its new superview.
Views can have only one superview. If
view already has a superview and that view is not the receiver, this method removes the previous superview before making the receiver its new superview.