这样做的最佳方式是什么?我现在只是有点用sortDescriptor像这样升:使用按钮决定在iPhone中升序或降序排序
NSSortDescriptor *Descriptor = [[[NSSortDescriptor alloc] initWithKey:@"Name" ascending:YES selector:@selector(localizedCaseInsensitiveCompare:)] autorelease];
现在,如果我有一个用于确定用户想通过降序或升序排序一个checkButton,什么是处理这个问题的最好方法是什么?在创建sortDescriptor之前,我检查checkButton的状态吗?然后,如果用户再次击中checkButton(创建相反的类型(上升或下降)的另一sortDescriptor,然后运行,显示在新的排序方式的数据?谢谢方法。