123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger, AHKActionSheetButtonType) {
- AHKActionSheetButtonTypeDefault = 0,
- AHKActionSheetButtonTypeDisabled,
- AHKActionSheetButtonTypeDestructive,
- AHKActionSheetButtonTypeEncrypted
- };
- @class AHKActionSheet;
- typedef void(^AHKActionSheetHandler)(AHKActionSheet *actionSheet);
- @interface AHKActionSheet : UIView <UIAppearanceContainer>
- @property (nonatomic) CGFloat blurRadius UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) UIColor *blurTintColor UI_APPEARANCE_SELECTOR;
- @property (nonatomic) CGFloat blurSaturationDeltaFactor UI_APPEARANCE_SELECTOR;
- @property (nonatomic) CGFloat buttonHeight UI_APPEARANCE_SELECTOR;
- @property (nonatomic) CGFloat cancelButtonHeight UI_APPEARANCE_SELECTOR;
- @property (nonatomic) CGFloat separatorHeight UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) NSNumber *automaticallyTintButtonImages UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) NSNumber *buttonTextCenteringEnabled UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) UIColor *separatorColor UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *titleTextAttributes UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *buttonTextAttributes UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *disableButtonTextAttributes UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *destructiveButtonTextAttributes UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *encryptedButtonTextAttributes UI_APPEARANCE_SELECTOR;
- @property (copy, nonatomic) NSDictionary *cancelButtonTextAttributes UI_APPEARANCE_SELECTOR;
- @property (nonatomic) NSTimeInterval animationDuration UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) NSNumber *cancelOnPanGestureEnabled UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) NSNumber *cancelOnTapEmptyAreaEnabled UI_APPEARANCE_SELECTOR;
- @property (strong, nonatomic) AHKActionSheetHandler cancelHandler;
- @property (copy, nonatomic) NSString *cancelButtonTitle;
- @property (copy, nonatomic) NSString *title;
- @property (strong, nonatomic) UIView *headerView;
- @property (weak, nonatomic, readonly) UIWindow *previousKeyWindow;
- @property (nonatomic, weak) UIView *view;
- - (instancetype)initWithTitle:(NSString *)title;
- - (instancetype)initWithView:(UIView *)view title:(NSString *)title;
- - (void)addButtonWithTitle:(NSString *)title image:(UIImage *)image backgroundColor:(UIColor *)backgroundColor height:(CGFloat)height type:(AHKActionSheetButtonType)type handler:(AHKActionSheetHandler)handler;
- - (void)show;
- - (void)dismissAnimated:(BOOL)animated;
- @end
|