Add Subview(UIView) Method
Adds the specified view as a subview of this view.
[Foundation.Export("addSubview:")] public virtual void AddSubview (UIKit.UIView view);
abstract member AddSubview : UIKit.UIView -> unit override this.AddSubview : UIKit.UIView -> unit
AddSubview(UIView) appends the
view to the end of
this UIView's Subviews. The methods InsertSubview(UIView, nint), InsertSubviewBelow(UIView, UIView), and InsertSubviewAbove(UIView, UIView) can be used to control the order.
A number of methods are called when a subview is added or removed:
The following diagram shows the sequence of calls resulting from a call to AddSubview(UIView). Note that the calls to WillMoveToWindow(UIWindow) and MovedToWindow() occur shortly after AddSubview(UIView) has completed.