CQAlertView
控件简介
快速集成CQAlertView,自定义消息内容。
【注】
- 注:所有颜色属性请先设置显示alert方法,才可以设置成功
CocoaPods
-
Add
pod 'CQAlertView',
to your Podfile. -
Run
pod install
orpod update
.
AlertView【示例】
默认方法
CQAlertView *alert = [[CQAlertView alloc] init];
[alert alert:self alertContent:@"内容内容内容内容内容内容" correctBack:^(UIButton * _Nonnull correctButton) {
NSLog(@"正确");
}];
alert.titleColor = [UIColor greenColor];
可修改文字方法
CQAlertView *alert = [[CQAlertView alloc] init];
[alert alertWithTitle:@"提示" cancelText:@"" correctText:@"" alertViewController:self actionsView:table correctBack:^(UIButton * _Nonnull correctButton) {
NSLog(@"正确");
} cancelBack:^(UIButton * _Nonnull cancelButton) {
NSLog(@"取消");
}];