BackgroundAnimationView.h 848 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // BackgroundAnimationView.h
  3. // smkj
  4. //
  5. // Created by 翟玉磊 on 2018/6/25.
  6. // Copyright © 2018年 翟玉磊. All rights reserved.
  7. //
  8. ///背景图循环滚动动画类,类似登陆界面背景图缓慢移动
  9. #import <UIKit/UIKit.h>
  10. #define kJSAnimatedImagesViewDefaultTimePerImage 20.0f
  11. @class BackgroundAnimationView;
  12. @protocol BackgroundAnimationViewDeletage <NSObject>
  13. - (NSUInteger)animatedImagesNumberOfImages:(BackgroundAnimationView *)animatedImagesView;
  14. - (UIImage *)animatedImagesView:(BackgroundAnimationView *)animatedImagesView imageAtIndex:(NSUInteger)index;
  15. @end
  16. @interface BackgroundAnimationView : UIView
  17. @property(nonatomic, weak) id<BackgroundAnimationViewDeletage> delegate;
  18. @property(nonatomic, assign) NSTimeInterval timePerImage;
  19. - (void)startAnimating;
  20. - (void)stopAnimating;
  21. - (void)reloadData;
  22. @end