123456789101112131415161718192021222324252627282930 |
- //
- // ZCAlertSheetBtnView.h
- // XLChat
- //
- // Created by 张灿 on 2017/11/6.
- // Copyright © 2017年 张灿. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef void(^handleBtnBlock)(NSInteger);
- @interface ZCAlertActionBtn : NSObject
- @property (nonatomic,copy)handleBtnBlock block;
- @property (nonatomic,copy)NSString *title;
- @property (nonatomic,assign)NSInteger type;
- + (ZCAlertActionBtn *)actionWithTitle:(NSString *)title type:(NSInteger)type andblock:(handleBtnBlock)block;
- @end
- @interface ZCAlertSheetBtnView : UIView
- @property(nonatomic,strong)UIWindow* alertWindow;
- //这里只需要设置好每个JWAlertAction的action再以block回调过去就可以了,调价到arr数组中
- - (id)initWithTitle:(NSString *)title andShowCancelButton:(BOOL)show andAction:(NSArray<ZCAlertAction *> *)arr selectIndex:(NSInteger)index column:(NSInteger)column;
- - (void)show;
- - (void)hide;
- @end
|