12345678910111213141516171819202122232425262728293031323334 |
- //
- // BackgroundAnimationView.h
- // smkj
- //
- // Created by 翟玉磊 on 2018/6/25.
- // Copyright © 2018年 翟玉磊. All rights reserved.
- //
- ///背景图循环滚动动画类,类似登陆界面背景图缓慢移动
- #import <UIKit/UIKit.h>
- #define kJSAnimatedImagesViewDefaultTimePerImage 20.0f
- @class BackgroundAnimationView;
- @protocol BackgroundAnimationViewDeletage <NSObject>
- - (NSUInteger)animatedImagesNumberOfImages:(BackgroundAnimationView *)animatedImagesView;
- - (UIImage *)animatedImagesView:(BackgroundAnimationView *)animatedImagesView imageAtIndex:(NSUInteger)index;
- @end
- @interface BackgroundAnimationView : UIView
- @property(nonatomic, weak) id<BackgroundAnimationViewDeletage> delegate;
- @property(nonatomic, assign) NSTimeInterval timePerImage;
- - (void)startAnimating;
- - (void)stopAnimating;
- - (void)reloadData;
- @end
|