-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlertControllerView.h
More file actions
26 lines (20 loc) · 990 Bytes
/
Copy pathAlertControllerView.h
File metadata and controls
26 lines (20 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// AlertControllerView.h
// UIAlertController
//
// Created by linghang on 2017/3/30.
// Copyright © 2017年 wangjian. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^CancelBlcok)(id cacel);
typedef void(^ConfirmBlock)(id confirmBlock);
typedef void(^ClickIndexBlock)(id clickIndexBlock);
@protocol AlertBlock <NSObject>
@optional
@end
@interface AlertControllerView : UIAlertController<AlertBlock>
@property (nonatomic, copy) CancelBlcok cancelBlock;
@property (nonatomic, copy) ConfirmBlock confirmBlock;
@property (nonatomic,copy) ClickIndexBlock clickIndexBlock;
- (id)initStyle:(UIAlertControllerStyle)actionStyle andTitle:(NSString *)title andContent:(NSString *)content andConfirm:(ConfirmBlock)confirmBLock andConfirmTitle:(NSString *)confirmTitle andCancelBlock:(CancelBlcok)cancelBlock andCancelTitle:(NSString *)cancelTitle andSheetArr:(NSArray *)sheetArr andDestructiveIndex:(NSInteger)index andClickIndexBlock:(ClickIndexBlock)clickIndexBlock;
@end