我的程序中集成MWPhotoBrowser
和YYText
提示上面的错误,在类PSTCollectionView
下面。网
解决判断就是把evaluatedObject
转成PSTCollectionViewCell
,与网上大部分Array count
的问题类似
- (NSArray *)visibleCells {
return [[_allVisibleViewsDict allValues] filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {
return [evaluatedObject isKindOfClass:PSTCollectionViewCell.class] && CGRectIntersectsRect(self.bounds,[(PSTCollectionViewCell *)evaluatedObject frame]);
}]];
}