Instance Method

result(at:)

Returns the query result at a specific index.

Declaration

func result(at idx: Int) -> Any

Parameters

index

The index of the desired result.

Return Value

The query result at a specific index.

Discussion

For performance reasons, you should use this method when retrieving a specific result, rather than they array contained in results.

See Also

Getting Query Results

var attribute: String

The result group’s attribute name.

var value: Any

The result group’s value.

var results: [Any]

An array containing the result group’s result objects.

var resultCount: Int

The number of results returned by the result group.

var subgroups: [NSMetadataQueryResultGroup]?

An array containing the result group’s subgroups.