Latest 1.1.0
Homepage https://github.com/xjh093/JHUIAlertView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

a custom alert view which can add your custom view.

Example:

JHUIAlertConfig *config = [[JHUIAlertConfig alloc] init];
config.title            = @"这是一个提示";
config.content          = @"您的余额不足,需充值之后才能继续观看";
config.contentFont      = [UIFont systemFontOfSize:15];

JHUIAlertButtonConfig *btnconfig1 = [JHUIAlertButtonConfig configWithTitle:@"取消" color:nil font:nil image:nil handle:^{
    NSLog(@"click1");
}];

JHUIAlertButtonConfig *btnconfig2 = [JHUIAlertButtonConfig configWithTitle:@"确定" color:nil font:nil image:nil handle:^{
    NSLog(@"click2");
}];

config.buttons = @[btnconfig1,btnconfig2];
JHUIAlertView *alert = [[JHUIAlertView alloc] initWithConfig:config];
[self.view addSubview:alert];
like this:

image

Latest podspec

{
    "name": "JHUIAlertView",
    "summary": "A simple custom AlertView.",
    "version": "1.1.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Haocold": "[email protected]"
    },
    "homepage": "https://github.com/xjh093/JHUIAlertView",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/xjh093/JHUIAlertView.git",
        "tag": "1.1.0"
    },
    "source_files": "JHUIAlertView/JHUIAlertView/*.{h,m}",
    "requires_arc": true,
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This