Skip to content

Instantly share code, notes, and snippets.

@zhangkn
Created June 4, 2018 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhangkn/e996a4f94c18152e8dd4aab2f5ad8b13 to your computer and use it in GitHub Desktop.
Save zhangkn/e996a4f94c18152e8dd4aab2f5ad8b13 to your computer and use it in GitHub Desktop.
@property(nonatomic,copy) NSArray *animationImages; //需要播放的序列帧图片数组(里面都是UIImage对象,会按顺序显示里面的图片)
@property(nonatomic) NSTimeInterval animationDuration;//帧动画的持续时间
@property(nonatomic) NSInteger animationRepeatCount; //帧动画的执行次数(默认是无限循环)
- (void)startAnimating;//开始执行帧动画
- (void)stopAnimating;//停止执行帧动画
- (BOOL)isAnimating;//是否正在执行帧动画
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment