Instance Method

setMenuVisible:animated:

Shows or hides the editing menu, optionally animating the action.

Declaration

- (void)setMenuVisible:(BOOL)menuVisible animated:(BOOL)animated;

Parameters

menuVisible

YES if the menu should be shown, NO if it should be hidden.

animated

YES if the showing or hiding of the menu should be animated, otherwise NO.

Discussion

Before showing the menu, be sure to position it relative to the selection. See setTargetRect:inView: for details. If you do not set the target rect before displaying the menu, it appears at screen coordinates (0.0, 0.0).

See Also

Showing and Hiding the Menu