摘要: NSMutableArray *sortedArray; sortedArray = [array sortedArrayUsingComparator:^NSComparisonResult(id a, id b) { double first = [(People*)a getValueA]; double second = [(People*)b getValueA]; return second-first; }];更多:http://iphone.xiaoxiaostudio.net/2012/11/20/%E5%A6%82%E4%BD%95%E7%BB%99nsm... 阅读全文
posted @ 2013-04-05 20:24 Peter_youny 阅读(115) 评论(0) 推荐(0) 编辑