Contents

indexOfItem(withTitle:)

Returns the index of the item with the specified title.

Declaration

func indexOfItem(withTitle title: String) -> Int

Parameters

  • title:

    The title of the item you want. You must not pass nil for this parameter.

Return Value

The index of the item or -1 if no item with the specified title was found.

See Also

Related Documentation

Accessing the items