Returns the value for the attribute name attr
at the index in the results specified by idx
.
SDKs
- iOS 5.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
- (id)valueOfAttribute:(NSString *)attrName forResultAtIndex:(NSUInteger)idx;
Parameters
attributeName
The attribute of the result object at
index
being inquired about. The attribute must be specified invalue
, as a sorting key in a specified sort descriptor, or as one of the grouping attributes specified set for the query.List Attributes index
The index of the desired return object in the query results array.
Return Value
Value for attribute
in the result object at index
in the query result array.