- NSArray存储模型,根据模型的某个属性匹配出具体位置
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"chapIndex = %ld && pageCount = %ld",cp.chapIndex,cp.pageCount];
NSArray *cps = [self.chapContentArr filteredArrayUsingPredicate:predicate];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"chapIndex = %ld && pageCount = %ld",cp.chapIndex,cp.pageCount];
NSArray *cps = [self.chapContentArr filteredArrayUsingPredicate:predicate];
本文标题:NSArray存储模型,根据模型的某个属性匹配出具体位置
本文链接:https://www.haomeiwen.com/subject/cfjxtqtx.html
网友评论