Contents

indexOfItem(withTag:)

Returns the index of the first menu item in the menu identified by a tag.

Declaration

func indexOfItem(withTag tag: Int) -> Int

Parameters

  • tag:

    An integer tag associated with the menu item of the menu.

Return Value

The integer index of the menu item or, if no such menu item is in the menu, –1.

See Also

Related Documentation

Finding Indices of Menu Items