1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // LZAlertWindow.h
- // VQU
- //
- // Created by CY on 2021/4/23.
- // Copyright © 2021 leo. All rights reserved.
- //
- #import "ZYBaseWindow.h"
- @interface LZAlertAction : NSObject
- @property (nonatomic,strong) NSString *title;
- @property (nonatomic,strong) UIColor *bgColor;
- @property (nonatomic,assign) CGFloat cornerRadius;
- @property (nonatomic,strong) UIColor *color;
- @property (nonatomic,strong) UIFont *font;
- @property (nonatomic,copy) void (^handler)(LZAlertAction *action);
- + (instancetype)actionWithTitle:(NSString *)title handler:(void (^)(LZAlertAction *action))handler;
- - (instancetype)initWithTitle:(NSString *)title handler:(void (^)(LZAlertAction *action))handler;
- @end
- @interface LZAlertWindow : ZYBaseWindow
- @property (nonatomic,strong) NSString *zTitle;
- @property (nonatomic,strong) NSString *content;
- @property (nonatomic,strong) NSArray<LZAlertAction *> *actions;
- @property (nonatomic,strong) UIColor *bgColor;
- @property (nonatomic,assign) CGFloat cornerRadius;
- @property (nonatomic,strong) UIColor *titleColor;
- @property (nonatomic,strong) UIFont *titleFont;
- @property (nonatomic,strong) UIColor *contentColor;
- @property (nonatomic,strong) UIFont *contentFont;
- @property (nonatomic,assign) CGFloat contentHorizontalSpace;
- @property (nonatomic,assign) NSTextAlignment contentTextAlignment;
- + (instancetype)alertWithTitle:(NSString *)title content:(NSString *)content action:(NSArray <LZAlertAction *>*)actions;
- - (instancetype)initWithTitle:(NSString *)title content:(NSString *)content action:(NSArray<LZAlertAction *> *)actions;
- + (instancetype)alertWithTitle:(NSString *)title content:(NSString *)content action:(NSArray <LZAlertAction *>*)actions contentStyleBlock:(void (^)(UILabel *contentL))contentStyleBlock;
- - (instancetype)initWithTitle:(NSString *)title content:(NSString *)content action:(NSArray<LZAlertAction *> *)actions contentStyleBlock:(void (^)(UILabel *contentL))contentStyleBlock;;
- @end
|