IDMZoomingScrollView.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // IDMZoomingScrollView.h
  3. // IDMPhotoBrowser
  4. //
  5. // Created by Michael Waterfall on 14/10/2010.
  6. // Copyright 2010 d3i. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "IDMPhotoProtocol.h"
  10. #import "IDMTapDetectingImageView.h"
  11. #import "IDMTapDetectingView.h"
  12. #import <DACircularProgress/DACircularProgressView.h>
  13. @class IDMPhotoBrowser, IDMPhoto, IDMCaptionView;
  14. @interface IDMZoomingScrollView : UIScrollView <UIScrollViewDelegate, IDMTapDetectingImageViewDelegate, IDMTapDetectingViewDelegate> {
  15. IDMPhotoBrowser *__weak _photoBrowser;
  16. id<IDMPhoto> _photo;
  17. // This view references the related caption view for simplified handling in photo browser
  18. IDMCaptionView *_captionView;
  19. IDMTapDetectingView *_tapView; // for background taps
  20. DACircularProgressView *_progressView;
  21. }
  22. @property (nonatomic, strong) IDMTapDetectingImageView *photoImageView;
  23. @property (nonatomic, strong) IDMCaptionView *captionView;
  24. @property (nonatomic, strong) id<IDMPhoto> photo;
  25. @property (nonatomic) CGFloat maximumDoubleTapZoomScale;
  26. - (id)initWithPhotoBrowser:(IDMPhotoBrowser *)browser;
  27. - (void)displayImage;
  28. - (void)displayImageFailure;
  29. - (void)setProgress:(CGFloat)progress forPhoto:(IDMPhoto*)photo;
  30. - (void)setMaxMinZoomScalesForCurrentBounds;
  31. - (void)prepareForReuse;
  32. @end