BaseAlertView.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // BaseAlertView.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2017/1/3.
  6. // Copyright © 2017年 ping. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface BaseAlertView : UIView
  10. @property (nonatomic, strong) UIView *viewBg;
  11. @property (nonatomic, strong) UIView *viewWhite;
  12. @property (nonatomic, strong) UILabel *labelAlert;
  13. @property (nonatomic, strong) UILabel *labeTitle;
  14. #pragma mark 创建
  15. + (instancetype)initWithTitle:(NSString *)title content:(NSString *)content aryBtnModels:(NSArray *)ary viewShow:(UIView *)viewShow;
  16. - (void)resetWithTitle:(NSString *)title content:(NSString *)content aryBtnModels:(NSArray *)ary viewShow:(UIView *)viewShow;
  17. #pragma mark 创建
  18. + (void)customAlertControllerWithTitle:(NSString *)title modelBtnArr:(NSArray *)models cancelTitle:(NSString *)cancelTitle cancelColor:(UIColor *)cancelColor selectIndex:(void(^)(int selectIndex))selectIndex;
  19. @end
  20. @interface ConBaseAlertView : UIControl
  21. @property (nonatomic, strong) UILabel *label;
  22. @property (nonatomic, strong) void (^block)(void);
  23. + (instancetype)initWithTitle:(NSString *)title labelColor:(UIColor *)labelColor tag:(NSInteger)tag frame:(CGRect)frame hasLineVertical:(BOOL)hasLineVertical;
  24. - (void)resetWithTitle:(NSString *)title labelColor:(UIColor *)labelColor tag:(NSInteger)tag frame:(CGRect)framel hasLineVertical:(BOOL)hasLineVertical;
  25. @end