NSSortDescriptor作用
来源:互联网 发布:vero moda淘宝旗舰店 编辑:程序博客网 时间:2024/05/17 07:07
NSArray *ma1 = @[@"1",@"3",@"2",@"5",@"4"]; NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"self" ascending:NO]; NSArray *arr1 = [ma1 sortedArrayUsingDescriptors:@[sort]]; NSLog(@"%@",arr1);// 5,// 4,// 3,// 2,// 1
NSSortDescriptor 用于排序
key
是KVC机制, 可以加上'.'2ascending
控制升序降序.
阅读全文
0 0
- NSSortDescriptor作用
- NSSortDescriptor
- NSSortDescriptor
- NSSortDescriptor
- NSSortDescriptor
- NSSortDescriptor
- NSSortDescriptor
- 关于NSSortDescriptor
- NSSortDescriptor排序
- NSSortDescriptor排序
- NSSortDescriptor的使用---排序
- NSSortDescriptor的使用
- NSSortDescriptor(数组排序)
- NSSortDescriptor(数组排序)
- NSSortDescriptor(数组排序)
- NSSortDescriptor(数组排序)
- NSSortDescriptor(数组排序)
- NSSortDescriptor(数组排序)
- getResourceAsStream用法详解
- 内存管理(1)-linux内核体系结构(2)
- ROS与AR.Drone-介绍等
- Android中xml的解析方式
- 怎样提高关键词排名,有什么技巧
- NSSortDescriptor作用
- Java(Eclipse)报出异常java.net.MalformedURLException: no protoco的l解决方法
- HTML部分基础总结(6)
- 中夜之思
- 【变治法】霍纳法则C++代码实现,求一个多项式在一个给定点的值
- 三周五次课(11月3日) 1.生成式和生成器 2.迭代器 3.装饰器
- 工厂模式
- 大数据集群之CDH版本搭建完整版
- 浅谈Java中的equals和==