省钱达人

SDBrowserImageView.h 750B

123456789101112131415161718192021222324252627282930
  1. //
  2. // SDBrowserImageView.h
  3. // SDPhotoBrowser
  4. //
  5. // Created by aier on 15-2-6.
  6. // Copyright (c) 2015年 GSD. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "SDWaitingView.h"
  10. @interface SDBrowserImageView : UIImageView <UIGestureRecognizerDelegate>
  11. @property (nonatomic, assign) CGFloat progress;
  12. @property (nonatomic, assign, readonly) BOOL isScaled;
  13. @property (nonatomic, assign) BOOL hasLoadedImage;
  14. - (void)eliminateScale; // 清除缩放
  15. - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;
  16. - (void)doubleTapToZommWithScale:(CGFloat)scale;
  17. - (void)clear;
  18. @end
  19. // 版权属于原作者
  20. // http://code4app.com (cn) http://code4app.net (en)
  21. // 发布代码于最专业的源码分享网站: Code4App.com