FWImageCropToolbar
@interface FWImageCropToolbar : UIView
/* In horizontal mode, offsets all of the buttons vertically by height of status bar. */
@property (nonatomic, assign) CGFloat statusBarHeightInset;
/// 按钮内边距,默认16
@property (nonatomic, assign) CGFloat buttonInsetPadding;
/* Set an inset that will expand the background view beyond the bounds. */
@property (nonatomic, strong, readonly) UIView *backgroundView;
@property (nonatomic, assign) UIEdgeInsets backgroundViewOutsets;
/* The 'Done' buttons to commit the crop. The text button is displayed
in portrait mode and the icon one, in landscape. */
@property (nonatomic, strong, readonly) UIButton *doneTextButton;
@property (nonatomic, strong, readonly) UIButton *doneIconButton;
@property (nonatomic, copy) NSString *doneTextButtonTitle;
/* The 'Cancel' buttons to cancel the crop. The text button is displayed
in portrait mode and the icon one, in landscape. */
@property (nonatomic, strong, readonly) UIButton *cancelTextButton;
@property (nonatomic, strong, readonly) UIButton *cancelIconButton;
@property (nonatomic, readonly) UIView *visibleCancelButton;
@property (nonatomic, copy) NSString *cancelTextButtonTitle;
/* The cropper control buttons */
@property (nonatomic, strong, readonly) UIButton *rotateCounterclockwiseButton;
@property (nonatomic, strong, readonly) UIButton *resetButton;
@property (nonatomic, strong, readonly) UIButton *clampButton;
@property (nullable, nonatomic, strong, readonly) UIButton *rotateClockwiseButton;
@property (nonatomic, readonly) UIButton *rotateButton; // Points to `rotateCounterClockwiseButton`
/* Button feedback handler blocks */
@property (nullable, nonatomic, copy) void (^cancelButtonTapped)(void);
@property (nullable, nonatomic, copy) void (^doneButtonTapped)(void);
@property (nullable, nonatomic, copy) void (^rotateCounterclockwiseButtonTapped)(void);
@property (nullable, nonatomic, copy) void (^rotateClockwiseButtonTapped)(void);
@property (nullable, nonatomic, copy) void (^clampButtonTapped)(void);
@property (nullable, nonatomic, copy) void (^resetButtonTapped)(void);
/* State management for the 'clamp' button */
@property (nonatomic, assign) BOOL clampButtonGlowing;
@property (nonatomic, readonly) CGRect clampButtonFrame;
/* Aspect ratio button visibility settings */
@property (nonatomic, assign) BOOL clampButtonHidden;
@property (nonatomic, assign) BOOL rotateCounterclockwiseButtonHidden;
@property (nonatomic, assign) BOOL rotateClockwiseButtonHidden;
@property (nonatomic, assign) BOOL resetButtonHidden;
@property (nonatomic, assign) BOOL doneButtonHidden;
@property (nonatomic, assign) BOOL cancelButtonHidden;
/* Enable the reset button */
@property (nonatomic, assign) BOOL resetButtonEnabled;
/* Done button frame for popover controllers */
@property (nonatomic, readonly) CGRect doneButtonFrame;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic) CGFloat statusBarHeightInset
-
按钮内边距,默认16
Declaration
Objective-C
@property (nonatomic) CGFloat buttonInsetPadding;
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIView *backgroundView
-
Undocumented
Declaration
Objective-C
@property (nonatomic) UIEdgeInsets backgroundViewOutsets
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *doneTextButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *doneIconButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, copy) NSString *doneTextButtonTitle
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *cancelTextButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *cancelIconButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) UIView *visibleCancelButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, copy) NSString *cancelTextButtonTitle
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *rotateCounterclockwiseButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *resetButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIButton *clampButton
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, strong, readonly) UIButton *rotateClockwiseButton
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) UIButton *rotateButton
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^cancelButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^doneButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^rotateCounterclockwiseButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^rotateClockwiseButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^clampButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nullable, nonatomic, copy) void (^resetButtonTapped
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL clampButtonGlowing
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) CGRect clampButtonFrame
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL clampButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL rotateCounterclockwiseButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL rotateClockwiseButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL resetButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL doneButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL cancelButtonHidden
-
Undocumented
Declaration
Objective-C
@property (nonatomic) BOOL resetButtonEnabled
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) CGRect doneButtonFrame