0
intを含むNSStringを含むNSMUtableArrayをソートする際に問題があります。 私は次のように並べ替えています。この文字列forrmatに数値を含むNSMutableArrayを並べ替えます。
scoreString=[NSString stringWithFormat:@"%lld",GameScore];
[scorearr addObject:scoreString];
NSSortDescriptor* sortOrder = [NSSortDescriptor sortDescriptorWithKey: @"self" ascending: NO];
NSArray *scoreArray= [scorearr sortedArrayUsingDescriptors: [NSArray arrayWithObject: sortOrder]];
scorearr =(NSMutableArray *)ary;
ソートされていませんか? – vishiphone