2011-10-14 71 views

回答

2

試試這個

NSSortDescriptor *descriptor = 
    [[NSSortDescriptor alloc] initWithKey:@"Score" ascending:YES]; 
[items sortUsingDescriptors:[NSArray arrayWithObjects:descriptor,nil]]; 
[descriptor release];