편집

다음을 통해 공유


UINavigationItem.SetRightBarButtonItem(UIBarButtonItem, Boolean) Method

Definition

Sets the button to display on the right side of the navigation bar, optionally animating its assignment.

[Foundation.Export("setRightBarButtonItem:animated:")]
public virtual void SetRightBarButtonItem (UIKit.UIBarButtonItem item, bool animated);
abstract member SetRightBarButtonItem : UIKit.UIBarButtonItem * bool -> unit
override this.SetRightBarButtonItem : UIKit.UIBarButtonItem * bool -> unit

Parameters

item
UIBarButtonItem

Item to display on the right side of the navigation bar, use null to clear it.

This parameter can be null.

animated
Boolean
Attributes

Applies to