123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- //
- // TYAlertView.h
- // TYAlertControllerDemo
- //
- // Created by tanyang on 15/9/7.
- // Copyright (c) 2015年 tanyang. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSUInteger, TYAlertActionStyle) {
- TYAlertActionStyleDefault,
- TYAlertActionStyleCancel,
- TYAlertActionStyleDestructive,
- };
- @interface TYAlertAction : NSObject <NSCopying>
- + (instancetype)actionWithTitle:(NSString *)title style:(TYAlertActionStyle)style handler:(void (^)(TYAlertAction *action))handler;
- @property (nonatomic, readonly) NSString *title;
- @property (nonatomic, readonly) TYAlertActionStyle style;
- @property (nonatomic, getter=isEnabled) BOOL enabled;
- @property UIVisualEffectView *aXHTSc9eZ4I;
- @property UIKeyCommand *axwkfWb5l;
- @property UIImage *aHD1Ma;
- @property UIBezierPath *anMk9;
- @property UIImage *aDl9kj;
- @property UIDevice *aNmtWhD;
- @property UIDocument *aCPYfNL9EMw;
- @property UIBezierPath *av0lNR9CnMo;
- @property UIFontWeight *aYXJGQz2k;
- @property UISearchBar *aLWvFT9Et;
- @property UIEvent *adOpmv2;
- @property UIFontWeight *ahHVz;
- @end
- @interface TYAlertView : UIView
- @property (nonatomic, weak, readonly) UILabel *titleLable;
- @property (nonatomic, weak, readonly) UILabel *messageLabel;
- // alertView textfield array
- @property (nonatomic, strong, readonly) NSArray *textFieldArray;
- // default 280, if 0 don't add width constraint,
- @property (nonatomic, assign) CGFloat alertViewWidth;
- // contentView space custom
- @property (nonatomic, assign) CGFloat contentViewSpace;
- // textLabel custom
- @property (nonatomic, assign) CGFloat textLabelSpace;
- @property (nonatomic, assign) CGFloat textLabelContentViewEdge;
- // button custom
- @property (nonatomic, assign) CGFloat buttonHeight;
- @property (nonatomic, assign) CGFloat buttonSpace;
- @property (nonatomic, assign) CGFloat buttonContentViewEdge;
- @property (nonatomic, assign) CGFloat buttonContentViewTop;
- @property (nonatomic, assign) CGFloat buttonCornerRadius;
- @property (nonatomic, strong) UIFont *buttonFont;
- @property (nonatomic, strong) UIColor *buttonDefaultBgColor;
- @property (nonatomic, strong) UIColor *buttonCancelBgColor;
- @property (nonatomic, strong) UIColor *buttonDestructiveBgColor;
- // textField custom
- @property (nonatomic, strong) UIColor *textFieldBorderColor;
- @property (nonatomic, strong) UIColor *textFieldBackgroudColor;
- @property (nonatomic, strong) UIFont *textFieldFont;
- @property (nonatomic, assign) CGFloat textFieldHeight;
- @property (nonatomic, assign) CGFloat textFieldEdge;
- @property (nonatomic, assign) CGFloat textFieldBorderWidth;
- @property (nonatomic, assign) CGFloat textFieldContentViewEdge;
- @property (nonatomic, assign) BOOL clickedAutoHide;
- + (instancetype)alertViewWithTitle:(NSString *)title message:(NSString *)message;
- - (void)addAction:(TYAlertAction *)action;
- - (void)addTextFieldWithConfigurationHandler:(void (^)(UITextField *textField))configurationHandler;
- @property UIVisualEffectView *aXHTSc9eZ4I;
- @property UIKeyCommand *axwkfWb5l;
- @property UIImage *aHD1Ma;
- @property UIBezierPath *anMk9;
- @property UIImage *aDl9kj;
- @property UIDevice *aNmtWhD;
- @property UIDocument *aCPYfNL9EMw;
- @property UIBezierPath *av0lNR9CnMo;
- @property UIFontWeight *aYXJGQz2k;
- @property UISearchBar *aLWvFT9Et;
- @property UIEvent *adOpmv2;
- @property UIFontWeight *ahHVz;
- @end
|