0

私は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 *
4

4 に答える 4