美文网首页
Multiple methods named 'numberOf

Multiple methods named 'numberOf

作者: 昵什么称 | 来源:发表于2019-11-16 21:56 被阅读0次

EaseUI中PSTCollectionView报错。

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

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

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

相关文章

网友评论

      本文标题:Multiple methods named 'numberOf

      本文链接:https://www.haomeiwen.com/subject/ynduictx.html