<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceController/addMenuItem(with:title:action:)-6pb4t",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceController(im)addMenuItemWithItemIcon:title:action:"
  },
  "title" : "addMenuItem(with:title:action:)"
}
-->

# addMenuItem(with:title:action:)

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

```
func addMenuItem(with itemIcon: WKMenuItemIcon, title: String, action: Selector)
```

## Parameters

`itemIcon`

The identifier of a standard system icon. This parameter must not be `nil`. For a list of possible values, see [`WKMenuItemIcon`](/documentation/WatchKit/WKMenuItemIcon).

`title`

The title string to be displayed underneath the image. Title strings should be reasonably short. Any text that cannot be displayed is truncated. This parameter must not be `nil` or an empty string.

`action`

The action method to be called when the action is tapped. The method must be defined on the current interface controller object. This parameter must not be `nil`.

## Discussion

Use this method to append an action to the interface controller’s context menu. If the menu already has four items, additional items are ignored.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)