BBASMActionSheet.h
1.57 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// BBAActionSheet.h
// SWAN
//
// Created by baidu on 2018/7/18.
// Copyright © 2018年 Baidu. All rights reserved.
//
#import "BBAActionSheet.h"
@interface BBASMActionSheet : BBAActionSheet
/**
* @brief 如果支持分组,返还分组样式,这个字符串代码分割线,写到otherbuttons里面即可
* @return 返回一个内部定义的特殊字符串
*/
+(NSString *)contentSeperator;
/**
* @brief 手百默认样式的ActionSheet
* @param title actionSheet标题
* @param delegate 代理
* @param cancelButtonTitle 取消按钮标题
* @param otherButtonTitles 其他按钮标题
* @return 返回BBAActionSheet对象
*/
+ (instancetype)defaultActionSheetWithTitle:(NSString *)title
delegate:(id<BBAActionSheetDelegate>)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles, ...;
/**
* @brief 手百默认样式的ActionSheet
* @param title actionSheet标题
* @param titleColor 标题颜色
* @param selectCallBack 选择后的回调
* @param cancelButtonTitle 取消按钮标题
* @param otherButtonTitles 其他按钮标题
* @return 返回BBAActionSheet对象
*/
+ (instancetype)defaultActionSheetWithTitle:(NSString *)title
titleColor:(NSString *)titleColor
selectCallBack:(void(^)(NSInteger))selectCallBack
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSArray *)otherButtonTitles;
@end