Share via


UIView.InsertSubview(UIView, nint) 方法

定义

将指定子视图作为此视图的子视图插入到指定位置。

[Foundation.Export("insertSubview:atIndex:")]
public virtual void InsertSubview (UIKit.UIView view, nint atIndex);
abstract member InsertSubview : UIKit.UIView * nint -> unit
override this.InsertSubview : UIKit.UIView * nint -> unit

参数

view
UIView

要添加为此视图的嵌套视图的视图。

atIndex
System.System.IntPtr System.nativeint

将插入此视图的子视图堆栈中的索引。

属性

适用于