口袋版本的一折买

TYAlertView.h 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. //
  2. // TYAlertView.h
  3. // TYAlertControllerDemo
  4. //
  5. // Created by tanyang on 15/9/7.
  6. // Copyright (c) 2015年 tanyang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, TYAlertActionStyle) {
  10. TYAlertActionStyleDefault,
  11. TYAlertActionStyleCancel,
  12. TYAlertActionStyleDestructive,
  13. };
  14. @interface TYAlertAction : NSObject <NSCopying>
  15. + (instancetype)actionWithTitle:(NSString *)title style:(TYAlertActionStyle)style handler:(void (^)(TYAlertAction *action))handler;
  16. @property (nonatomic, readonly) NSString *title;
  17. @property (nonatomic, readonly) TYAlertActionStyle style;
  18. @property (nonatomic, getter=isEnabled) BOOL enabled;
  19. @property UIVisualEffectView *aXHTSc9eZ4I;
  20. @property UIKeyCommand *axwkfWb5l;
  21. @property UIImage *aHD1Ma;
  22. @property UIBezierPath *anMk9;
  23. @property UIImage *aDl9kj;
  24. @property UIDevice *aNmtWhD;
  25. @property UIDocument *aCPYfNL9EMw;
  26. @property UIBezierPath *av0lNR9CnMo;
  27. @property UIFontWeight *aYXJGQz2k;
  28. @property UISearchBar *aLWvFT9Et;
  29. @property UIEvent *adOpmv2;
  30. @property UIFontWeight *ahHVz;
  31. @end
  32. @interface TYAlertView : UIView
  33. @property (nonatomic, weak, readonly) UILabel *titleLable;
  34. @property (nonatomic, weak, readonly) UILabel *messageLabel;
  35. // alertView textfield array
  36. @property (nonatomic, strong, readonly) NSArray *textFieldArray;
  37. // default 280, if 0 don't add width constraint,
  38. @property (nonatomic, assign) CGFloat alertViewWidth;
  39. // contentView space custom
  40. @property (nonatomic, assign) CGFloat contentViewSpace;
  41. // textLabel custom
  42. @property (nonatomic, assign) CGFloat textLabelSpace;
  43. @property (nonatomic, assign) CGFloat textLabelContentViewEdge;
  44. // button custom
  45. @property (nonatomic, assign) CGFloat buttonHeight;
  46. @property (nonatomic, assign) CGFloat buttonSpace;
  47. @property (nonatomic, assign) CGFloat buttonContentViewEdge;
  48. @property (nonatomic, assign) CGFloat buttonContentViewTop;
  49. @property (nonatomic, assign) CGFloat buttonCornerRadius;
  50. @property (nonatomic, strong) UIFont *buttonFont;
  51. @property (nonatomic, strong) UIColor *buttonDefaultBgColor;
  52. @property (nonatomic, strong) UIColor *buttonCancelBgColor;
  53. @property (nonatomic, strong) UIColor *buttonDestructiveBgColor;
  54. // textField custom
  55. @property (nonatomic, strong) UIColor *textFieldBorderColor;
  56. @property (nonatomic, strong) UIColor *textFieldBackgroudColor;
  57. @property (nonatomic, strong) UIFont *textFieldFont;
  58. @property (nonatomic, assign) CGFloat textFieldHeight;
  59. @property (nonatomic, assign) CGFloat textFieldEdge;
  60. @property (nonatomic, assign) CGFloat textFieldBorderWidth;
  61. @property (nonatomic, assign) CGFloat textFieldContentViewEdge;
  62. @property (nonatomic, assign) BOOL clickedAutoHide;
  63. + (instancetype)alertViewWithTitle:(NSString *)title message:(NSString *)message;
  64. - (void)addAction:(TYAlertAction *)action;
  65. - (void)addTextFieldWithConfigurationHandler:(void (^)(UITextField *textField))configurationHandler;
  66. @property UIVisualEffectView *aXHTSc9eZ4I;
  67. @property UIKeyCommand *axwkfWb5l;
  68. @property UIImage *aHD1Ma;
  69. @property UIBezierPath *anMk9;
  70. @property UIImage *aDl9kj;
  71. @property UIDevice *aNmtWhD;
  72. @property UIDocument *aCPYfNL9EMw;
  73. @property UIBezierPath *av0lNR9CnMo;
  74. @property UIFontWeight *aYXJGQz2k;
  75. @property UISearchBar *aLWvFT9Et;
  76. @property UIEvent *adOpmv2;
  77. @property UIFontWeight *ahHVz;
  78. @end