Edytuj

Udostępnij za pośrednictwem


UIViewController.SetToolbarItems(UIBarButtonItem[], Boolean) Method

Definition

Adds UIBarButtonItems to the UIToolbar

[Foundation.Export("setToolbarItems:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetToolbarItems (UIKit.UIBarButtonItem[] items, bool animated);
abstract member SetToolbarItems : UIKit.UIBarButtonItem[] * bool -> unit
override this.SetToolbarItems : UIKit.UIBarButtonItem[] * bool -> unit

Parameters

items
UIBarButtonItem[]

The array of UIBarButtonItems to be added.

This parameter can be null.

animated
Boolean

Whether the addition of the buttons should be animated.

Attributes

Remarks

This method can be used to add UIBarButtonItems to a UINavigationController’s UIToolbar.

Applies to

See also