Instance Property

itemTitles

An array of strings corresponding to the titles of the items in the menu.

Declaration

@property(readonly, copy) NSArray<NSString *> *itemTitles;

Discussion

This property contains an array of NSString objects, each of which contains the title of an item in the menu. The order of the titles in this array matches the order of the items in the menu. If the menu contains separator items, the array contains an empty string for each separator item.

See Also

Getting menu items

menu

The menu associated with the pop-up button.

numberOfItems

The number of items in the menu.

itemArray

The array of menu item objects associated with the button.

- itemAtIndex:

Returns the menu item at the specified index.

- itemTitleAtIndex:

Returns the title of the item at the specified index.

- itemWithTitle:

Returns the menu item with the specified title.

lastItem

The last item in the menu.