DKPhotoPickerCommon.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. //
  3. // Copyright (c) 2014年 com.zixue101.www. All rights reserved.
  4. //
  5. #ifndef DKPhotoPickerCommon_h
  6. #define DKPhotoPickerCommon_h
  7. // 点击销毁的block
  8. typedef void(^DKPickerBrowserViewControllerTapDisMissBlock)(NSInteger);
  9. // 点击View执行的动画
  10. typedef NS_ENUM(NSUInteger, UIViewAnimationAnimationStatus) {
  11. UIViewAnimationAnimationStatusZoom = 0, // 放大缩小
  12. UIViewAnimationAnimationStatusFade , // 淡入淡出
  13. UIViewAnimationAnimationStatusRotate // 旋转
  14. };
  15. // 图片最多显示9张,超过9张取消单击事件
  16. static NSInteger const KPhotoShowMaxCount = 9;
  17. #define iOS7gt ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)
  18. // ScrollView 滑动的间距
  19. static CGFloat const ZLPickerColletionViewPadding = 20;
  20. // ScrollView拉伸的比例
  21. static CGFloat const ZLPickerScrollViewMaxZoomScale = 3.0;
  22. static CGFloat const ZLPickerScrollViewMinZoomScale = 1.0;
  23. // 进度条的宽度/高度
  24. static NSInteger const ZLPickerProgressViewW = 50;
  25. static NSInteger const ZLPickerProgressViewH = 50;
  26. // 分页控制器的高度
  27. static NSInteger const ZLPickerPageCtrlH = 25;
  28. // NSNotification
  29. static NSString *PICKER_TAKE_DONE = @"PICKER_TAKE_DONE";
  30. #endif