編輯

共用方式為


UIViewController.ToolbarItems Property

Definition

public virtual UIKit.UIBarButtonItem[] ToolbarItems { [Foundation.Export("toolbarItems", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setToolbarItems:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.ToolbarItems : UIKit.UIBarButtonItem[] with get, set

Property Value

The default value is null.

Attributes

Remarks

This property references the UIBarButtonItems on a UINavigationController’s Toolbar. If the application developer wishes to animate the addition or removal of UIBarButtonItems, they should use the SetToolbarItems(UIBarButtonItem[], Boolean) method.

Applies to