处理KBFunctionTagCell正在执行又可以点击别的
This commit is contained in:
@@ -67,6 +67,8 @@ static CGFloat const kKBItemSpace = 4;
|
|||||||
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section { return kKBItemSpace; }
|
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section { return kKBItemSpace; }
|
||||||
|
|
||||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||||
|
// 有cell正在loading时,不允许点击其他cell
|
||||||
|
if (self.loadingIndexes.count > 0) { return; }
|
||||||
KBTagItemModel *model = (indexPath.item < self.items.count) ? self.items[indexPath.item] : [KBTagItemModel new];
|
KBTagItemModel *model = (indexPath.item < self.items.count) ? self.items[indexPath.item] : [KBTagItemModel new];
|
||||||
NSInteger personaId = 0;
|
NSInteger personaId = 0;
|
||||||
if ([model isKindOfClass:KBTagItemModel.class]) {
|
if ([model isKindOfClass:KBTagItemModel.class]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user