我正在排序我的NSSet
使用:
NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"name" ascending:YES];
[[testSet.questions allObjects] sortedArrayUsingDescriptors:descriptor]; // warning
但这会引起警告:
Incompatible pointer types sending 'NSSortDescriptor *__strong' to parameter of type 'NSArray *