Instance Method

clearAllMenuItems

Removes all programmatically added actions from the context menu.

Declaration

- (void)clearAllMenuItems;

Discussion

Use this method to remove all menu items that you added using the addMenuItemWithImage:title:action: or addMenuItemWithImageNamed:title:action: method. This method does not remove menu items that you configured in the storyboard file.

See Also

Configuring the Context Menu

- addMenuItemWithItemIcon:title:action:

Adds an action to the context menu using a system-provided icon.

- addMenuItemWithImageNamed:title:action:

Adds an action to the context menu using an existing image resource in your Watch app bundle.

- addMenuItemWithImage:title:action:

Adds an action to the context menu by using an image provided by your WatchKit extension.

WKMenuItemIcon

Template images that you can use for menus.