Multiple methods named 'numberOfItemsInSection:' found with mismatched result, parameter type or ...

EaseUI中PSTCollectionView报错。

NSInteger numberOfBeforeSection = [_update[@"oldModel"] numberOfItemsInSection:updateItem.indexPathBeforeUpdate.section];

该报错是因为取值时编译器不知道对象,解决方法为告诉编译器对象,更改为:

NSInteger numberOfBeforeSection = [(UICollectionView *)_update[@"oldModel"] numberOfItemsInSection:updateItem.indexPathBeforeUpdate.section];

你可能感兴趣的:(Multiple methods named 'numberOfItemsInSection:' found with mismatched result, parameter type or ...)