猎豆优选

ZLClipItem.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // ZLClipItem.h
  3. // ZLPhotoBrowser
  4. //
  5. // Created by long on 2018/5/6.
  6. // Copyright © 2018年 long. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface ZLClippingCircle : UIView
  10. @property (nonatomic, strong) UIColor *bgColor;
  11. @end
  12. @interface ZLGridLayar : CALayer
  13. @property (nonatomic, assign) CGRect clippingRect;
  14. @property (nonatomic, strong) UIColor *bgColor;
  15. @property (nonatomic, strong) UIColor *gridColor;
  16. @end
  17. @interface ZLClipRatio : NSObject
  18. @property (nonatomic, assign) BOOL isLandscape;
  19. @property (nonatomic, readonly) CGFloat ratio;
  20. @property (nonatomic, strong) NSString *titleFormat;
  21. - (id)initWithValue1:(CGFloat)value1 value2:(CGFloat)value2;
  22. @end
  23. @interface ZLClipItem : UIView
  24. {
  25. UIImageView *_iconView;
  26. UILabel *_titleLabel;
  27. }
  28. @property (nonatomic, strong) ZLClipRatio *ratio;
  29. - (instancetype)initWithFrame:(CGRect)frame
  30. image:(UIImage *)image
  31. target:(id)target
  32. action:(SEL)action NS_DESIGNATED_INITIALIZER;
  33. - (void)refreshViews;
  34. - (void)changeOrientation;
  35. @end