You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.8 KiB
45 lines
1.8 KiB
// |
|
// EasyAlertConfig.h |
|
// EasyShowViewDemo |
|
// |
|
// Created by Mr_Chen on 2018/3/5. |
|
// Copyright © 2018年 chenliangloveyou. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <UIKit/UIKit.h> |
|
#import "EasyAlertTypes.h" |
|
#import "EasyShowUtils.h" |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
@interface EasyAlertConfig : NSObject |
|
|
|
@property (nonatomic,strong)UIColor *tintColor ; //alertview的背景颜色 |
|
@property (nonatomic,strong)UIColor *titleColor ; //title的字体颜色 |
|
@property (nonatomic,strong)UIColor *subtitleColor ;//subtitle的字体颜色 |
|
@property (nonatomic,assign)NSTextAlignment subtitleTextAligment ;//subtitle对其方式 |
|
@property (nonatomic,assign)BOOL twoItemHorizontal ;//当alertview为两个的时候,是否横着摆放 |
|
@property (nonatomic,assign)AlertAnimationType animationType;//alertView:展示和消失的动画类型。(只对自定义的alertview起作用) |
|
//背景的样式。(只对自定义的alertview起作用) |
|
@property (nonatomic,assign)AlertBgEffectType effectType UI_APPEARANCE_SELECTOR; |
|
|
|
@property (nonatomic,assign)BOOL bgViewEvent ; //点击alertview之外的空白区域,是否销毁alertview。默认为:NO |
|
@property (nonatomic,assign)NSUInteger alertViewMaxNum ; //允许出现alertView的最大数量 |
|
@property (nonatomic,assign)BOOL isSupportRotating; //是否支持横屏 |
|
|
|
+ (instancetype)shared ; |
|
|
|
- (EasyAlertConfig *(^)(UIColor *))setTintColor; |
|
- (EasyAlertConfig *(^)(UIColor *))setTitleColor ; |
|
- (EasyAlertConfig *(^)(UIColor *))setSubtitleColor ; |
|
- (EasyAlertConfig *(^)(NSTextAlignment))setSubtitleTextAligment ; |
|
- (EasyAlertConfig *(^)(BOOL))settwoItemHorizontal ; |
|
- (EasyAlertConfig *(^)(AlertAnimationType))setAnimationType ; |
|
- (EasyAlertConfig *(^)(AlertBgEffectType))setEffectType ; |
|
- (EasyAlertConfig *(^)(BOOL))setBgViewEvent ; |
|
- (EasyAlertConfig *(^)(NSUInteger))setAlertViewMaxNum ; |
|
|
|
@end |
|
NS_ASSUME_NONNULL_END |
|
|
|
|