Latest 1.0.1
Homepage https://github.com/cq1402272764/CQAlertView
License MIT
Platforms ios 7.0, requires ARC
Authors

控件简介

快速集成CQAlertView,自定义消息内容。

【注】

  • 注:所有颜色属性请先设置显示alert方法,才可以设置成功

    CocoaPods

  1. Add pod 'CQAlertView', to your Podfile.

  2. Run pod install or pod 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(@"取消");
}];

界面显示

image

Latest podspec

{
    "name": "CQAlertView",
    "version": "1.0.1",
    "summary": "u5febu901fu96c6u6210u8b66u544au5f39u6846u5c0fu63a7u4ef6",
    "homepage": "https://github.com/cq1402272764/CQAlertView",
    "authors": {
        "CQ_ Develop": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "license": "MIT",
    "source": {
        "git": "https://github.com/cq1402272764/CQAlertView.git",
        "tag": "1.0.1"
    },
    "source_files": "CQAlertView/CQAlertView/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This