FWBarrageCell

@interface FWBarrageCell : UIView
@property (nonatomic, assign, getter=isIdle) BOOL idle;//是否是空闲状态
@property (nonatomic, assign) NSTimeInterval idleTime;//开始闲置的时间, 闲置超过5秒的, 自动回收内存
@property (nonatomic, strong, nullable) FWBarrageDescriptor *barrageDescriptor;
@property (nonatomic, strong, readonly, nullable) CAAnimation *barrageAnimation;
@property (nonatomic, assign) int trackIndex;

- (void)addBarrageAnimationWithDelegate:(id<CAAnimationDelegate>)animationDelegate;
- (void)prepareForReuse;
- (void)clearContents;

- (void)updateSubviewsData;
- (void)layoutContentSubviews;
- (void)convertContentToImage;
- (void)sizeToFit;//设置好数据之后调用一下自动计算bounds
- (void)removeSubViewsAndSublayers;//默认删除所有的subview和sublayer; 如果需要选择性的删除可以重写这个方法.
- (void)addBorderAttributes;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, getter=isIdle) BOOL idle
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval idleTime
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) FWBarrageDescriptor *barrageDescriptor
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) CAAnimation *barrageAnimation
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) int trackIndex
  • Undocumented

    Declaration

    Objective-C

    - (void)addBarrageAnimationWithDelegate:(id<CAAnimationDelegate>)animationDelegate;
  • Undocumented

    Declaration

    Objective-C

    - (void)prepareForReuse;
  • Undocumented

    Declaration

    Objective-C

    - (void)clearContents;
  • Undocumented

    Declaration

    Objective-C

    - (void)updateSubviewsData;
  • Undocumented

    Declaration

    Objective-C

    - (void)layoutContentSubviews;
  • Undocumented

    Declaration

    Objective-C

    - (void)convertContentToImage;
  • Undocumented

    Declaration

    Objective-C

    - (void)sizeToFit;
  • Undocumented

    Declaration

    Objective-C

    - (void)removeSubViewsAndSublayers;
  • Undocumented

    Declaration

    Objective-C

    - (void)addBorderAttributes;