value(ofAttribute:forResultAt:)
Returns the value for the attribute name attrName at the index in the results specified by idx.
Declaration
func value(ofAttribute attrName: String, forResultAt idx: Int) -> Any?Parameters
- attrName:
The attribute of the result object at
idxbeing inquired about. The attribute must be specified in Valuelistattributes, as a sorting key in a specified sort descriptor, or as one of the grouping attributes specified set for the query. - idx:
The index of the desired return object in the query results array.
Return Value
Value for attrName in the result object at idx in the query result array.