Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个NSMutableSet包含NSNumbers,我需要得到最高的。我该怎么做?
NSMutableSet
NSNumber
您可以使用[mutableSet valueForKeyPath:@"@max.self"].
[mutableSet valueForKeyPath:@"@max.self"]