Latest 1.0.0
Homepage https://github.com/JustString/HLAlertController
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation
Authors

alert to replace system alert.

easy to use

pod ‘HLAlertController’

HLAlertController *alert = [HLAlertController alertControllerWithTitle:@"标题" message:@"副标题 允许换行, 允许换行, 允许换行, 允许换行, 允许换行, 允许换行, 允许换行, 允许换行" preferredStyle:style];

[alert addAction:[HLAlertAction actionWithTitle:@"取消" style:HLAlertActionStyleCancel handler:^(HLAlertAction *action) {
    NSLog(@"button one");
}]];
[alert addAction:[HLAlertAction actionWithTitle:@"正常" style:HLAlertActionStyleDefault handler:^(HLAlertAction *action) {
    NSLog(@"button two");
}]];
[alert addAction:[HLAlertAction actionWithTitle:@"警告" style:HLAlertActionStyleDestructive handler:^(HLAlertAction *action) {
    NSLog(@"button three");
}]];

[self presentViewController:alert animated:YES completion:nil];

alt text

alt text

Latest podspec

{
    "name": "HLAlertController",
    "version": "1.0.0",
    "summary": "alert to replace system alert",
    "description": "alert to replace system alert. very easy to use.",
    "homepage": "https://github.com/JustString/HLAlertController",
    "license": "MIT",
    "authors": {
        "StringZhao": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/JustString/HLAlertController.git",
        "tag": "1.0.0"
    },
    "source_files": "HLAlertController/*.{h,m}",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This