Latest 1.0.1
Homepage https://github.com/JHFighting/JHBlockAlertView
License MIT
Platforms ios 6.0
Dependencies YYModel
Authors

支持block回调

使用方法

1.导入 #import "JHBlockAlertView.h"

2.使用JHBlockAlertViewItem创建item

JHBlockAlertViewItem *item1 = [JHBlockAlertViewItem itemWithTitle:@"1" andBlock:^{
    NSLog(@"1");
}];

3.初始化JHBlockAlertView

JHBlockAlertView *alertView = [JHBlockAlertView alertViewWithTitle:@"哈哈"
                                                           message:@"嘻嘻"
                                                  cancelButtonItem:item1
                                                otherButtonItems:item2, item3, nil];

4.显示

[alertView show];

Latest podspec

{
    "name": "JHBlockAlertView",
    "version": "1.0.1",
    "summary": "JHBlockAlertView",
    "description": "detail description of JHBlockAlertView",
    "homepage": "https://github.com/JHFighting/JHBlockAlertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Huan": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/JHFighting/JHBlockAlertView.git",
        "tag": "1.0.1"
    },
    "source_files": "JHBlockAlertView/*.{h,m}",
    "dependencies": {
        "YYModel": []
    }
}

Pin It on Pinterest

Share This