Vote count:
0
I am getting a strange error. When I am trying to sort an array..
- (NSArray *)sortItemsUsingDescriptor:(NSSortDescriptor *)descriptor
{
NSArray *descriptors = [NSArray arrayWithObject:descriptor];
//This line is where the exception occurs
NSArray *sortedArray = [self.unsortedArray sortedArrayUsingDescriptors:descriptors];
return sortedArray;
}
And yes, all the objects of the 'unsortedArray' has the property specified in the descriptor. Any ideas?
asked 33 secs ago
-[__NSCFConstantString ascending]: unrecognized selector sent to instance 0x15
Aucun commentaire:
Enregistrer un commentaire