Contents

removeItem(at:)

Removes the item at the specified index.

Declaration

func removeItem(at index: Int)

Parameters

  • index:

    The zero-based index indicating which item to remove. Specifying 0 removes the item at the top of the menu.

Discussion

After removing the item, this method uses the synchronizeTitleAndSelectedItem() method to make sure the title displayed matches the currently selected item.

See Also

Inserting and deleting items