省钱达人

SDPhotoBrowser.h 919B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // SDPhotoBrowser.h
  3. // photobrowser
  4. //
  5. // Created by aier on 15-2-3.
  6. // Copyright (c) 2015年 aier. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class SDButton, SDPhotoBrowser;
  10. @protocol SDPhotoBrowserDelegate <NSObject>
  11. @required
  12. - (UIImage *)photoBrowser:(SDPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index;
  13. @optional
  14. - (NSURL *)photoBrowser:(SDPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index;
  15. @end
  16. @interface SDPhotoBrowser : UIView <UIScrollViewDelegate>
  17. @property (nonatomic, weak) UIView *sourceImagesContainerView;
  18. @property (nonatomic, assign) NSInteger currentImageIndex;
  19. @property (nonatomic, assign) NSInteger imageCount;
  20. @property (nonatomic, weak) id<SDPhotoBrowserDelegate> delegate;
  21. - (void)show;
  22. @end
  23. // 版权属于原作者
  24. // http://code4app.com (cn) http://code4app.net (en)
  25. // 发布代码于最专业的源码分享网站: Code4App.com