How to refresh UICollectionViewCell in iOS 7?

后端 未结 3 1497
半阙折子戏
半阙折子戏 2021-02-04 15:04

I am trying to develop my app in Xcode 5 and debug it under iOS 7 environment.

I have a customized UICollectionViewLayoutAttributes.

I plan to do something after

3条回答
  •  感情败类
    2021-02-04 16:03

    In this case, the most efficient method would be

    - (BOOL)isEqual:(id)other {
            if (other == self) {
                return YES;
            }
    
            if(![super isEqual:other]) {
                return NO;
            }
    
            return ([((MyUICollectionViewLayoutAttributes *) other) isActived] == [self isActived]);
    }
    

提交回复
热议问题