Instance Method


Specifies which item of an array or ordered set to use for the parameter.


- (void)setIndex:(NSUInteger)index forSubKeyPath:(NSString *)subKeyPath;



The index of an object in the array or ordered set.


The path to the property containing an array or ordered set. For example, the key path for the messages property of an INSearchForMessagesIntentResponse object would be the string messages.


When the key path for a parameter contains an array or ordered set, use this method to specify which object in that array or ordered set to use.

See Also

Managing Indexed Values

- indexForSubKeyPath:

The index into the array at the specified portion of the key path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software