Latest 0.0.1
Homepage https://github.com/chinabrant/BRAlertView
License MIT
Platforms ios 7.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

效果图

[BRTextAlertView showMessage:@"Tap outside can't dismiss" buttonTitles:@[@"Cancel"] configrationBlock:^BRTextConfigration * _Nullable{
    BRTextConfigration *configration = [BRTextConfigration new];
    configration.tapOutsideDismiss = NO;
    return configration;
} actionBlock:^(int index) {

}];

[BRTextAlertView showMessage:@"Tap outside dismiss" buttonTitles:@[@"Cancel", @"Confirm"] configrationBlock:^BRTextConfigration * _Nullable{
    BRTextConfigration *configration = [BRTextConfigration new];
    NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:@"This is an AttributedString,Configration contain attributedString,the message parameter will invalid!"];
    [attrString addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(4, 16)];
    NSRange range = [[attrString string] rangeOfString:@"invalid"];
    [attrString addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:17] range:range];
    [attrString addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:range];
    configration.attributedString = attrString;

    return configration;
} actionBlock:^(int index) {

}];

Requirements

iOS 7.0 or higher

Installation

BRAlertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "BRAlertView"

Author

brant, [email protected]

License

BRAlertView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BRAlertView",
    "version": "0.0.1",
    "summary": "A high customize text AlertView for iOS.",
    "description": "u53efu9ad8u5ea6u5b9au5236u7684 alert view, u76eeu524du53eau652fu6301u663eu793astringu548cattributedString",
    "homepage": "https://github.com/chinabrant/BRAlertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "brant": "[email protected]"
    },
    "source": {
        "git": "https://github.com/chinabrant/BRAlertView.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "BRAlertView/Classes/**/*"
}

Pin It on Pinterest

Share This