Instance Method

keysOfEntriesWithOptions:passingTest:

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.

Declaration

- (NSSet<KeyType> *)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(KeyType key, ObjectType obj, BOOL *stop))predicate;

Parameters

opts

A bit mask of enumeration options.

predicate

A block object that specifies constraints for values in the dictionary.

Return Value

The set of keys whose corresponding value satisfies predicate.

See Also

Filtering Dictionaries

- keysOfEntriesPassingTest:

Returns the set of keys whose corresponding value satisfies a constraint described by a block object.