![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
CocoaJerry
开发
展开
-
OC数组排序
闲来无事,看了看OC的对象数组的排序,简单地展示一下常用的三种方式:首先,看一下自定义对象的属性和方法:@interface People : NSObject@property (nonatomic,strong) NSString *name;@property (nonatomic,assign) NSInteger age;@property (no原创 2017-04-24 09:41:10 · 598 阅读 · 0 评论 -
iOS中关于NSPredicate的使用
一般我们最多的是用NSPredicate来做字符串的正则验证 NSMutableArray *people_arr = [NSMutableArray new]; NSMutableArray *filter_arr = [NSMutableArray new]; for (int i = 0; i People *people = [原创 2017-04-24 15:56:23 · 601 阅读 · 0 评论