首页 > 编程语言 > 详细

json解析后的数组进行排序

时间:2015-08-28 17:18:15      阅读:248      评论:0      收藏:0      [点我收藏+]
            NSSortDescriptor *sortDescriptor;
            
            sortDescriptor = [[NSSortDescriptor alloc]initWithKey:@"dtDateReal" ascending:NO];
            
            NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
            
            NSArray *sortedArray;
            
            sortedArray = [self.courseLists sortedArrayUsingDescriptors:sortDescriptors];
            
            self.courseLists = sortedArray;

参考网址http://segmentfault.com/q/1010000000120607

json解析后的数组进行排序

原文:http://www.cnblogs.com/huoxingdeguoguo/p/4766940.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!