close
NSSortDescriptor 是一種排序Array的工具
NSSortDescriptor *col1SD = [[NSSortDescriptor alloc] initWithKey:@"OrderTime" ascending:NO];
NSArray *sortDescriptors = [NSArray arrayWithObjects:col1SD , nil];
[dataCopy sortUsingDescriptors:sortDescriptors];
//長度排序
NSSortDescriptor *col1SD = [[NSSortDescriptor alloc] initWithKey:@“OrderTime.length" ascending:NO];
文章標籤
全站熱搜
留言列表