Düzenle

Aracılığıyla paylaş


UIMenuController.SetMenuVisible(Boolean, Boolean) Method

Definition

Displays or hides the editing menu menu.

[Foundation.Export("setMenuVisible:animated:")]
public virtual void SetMenuVisible (bool visible, bool animated);
abstract member SetMenuVisible : bool * bool -> unit
override this.SetMenuVisible : bool * bool -> unit

Parameters

visible
Boolean

If true, shows the editing menu; if false hides it.

animated
Boolean

Determines whether the menu display should be animated or not.

Attributes

Remarks

Before the menu is displayed, it is important that the view or view controller that will display the menu are the first responder (you can achieve this by calling BecomeFirstResponder(). The view or view controller must implement CanBecomeFirstResponder and it must return true and your view or view controller must implement CanPerform(Selector, NSObject) to determine which menu items will be shown.

Applies to