ImageScrollerView.h 1017 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ImageScrollerView.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 12/18/15.
  6. // Copyright © 2015 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #pragma mark -ENUM
  10. typedef NS_ENUM(NSInteger, MRImgLocation) {
  11. MRImgLocationLeft,
  12. MRImgLocationCenter,
  13. MRImgLocationRight,
  14. };
  15. @interface ImageScrollerView : UIScrollView<UIScrollViewDelegate>
  16. {
  17. NSDictionary* _imgViewDic; // 展示板组
  18. }
  19. @property int curIndex; // 当前显示图片在数据源中的下标
  20. @property(nonatomic ,strong)NSMutableArray *imgSource;
  21. @property(nonatomic ,readonly)MRImgLocation imgLocation; // 图片在空间中的位置
  22. - (id)initWithFrame:(CGRect)frame;
  23. - (id)initWithFrame:(CGRect)frame withSourceData:(NSMutableArray *)imgSource withIndex:(NSInteger)index;
  24. - (id)initWithFrame:(CGRect)frame withSourceURL:(NSMutableArray *)imgURL withIndex:(NSInteger)index;
  25. // 谦让双击放大手势
  26. - (void)requireDoubleGestureRecognizer:(UITapGestureRecognizer *)tep;
  27. @end