Latest 0.1.0
Homepage https://github.com/wusuowei/WTAlert
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

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

Installation

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

pod "WTAlert"

show alert

[WTAlert showAlertFrom:self title:@"This is normal title" message:@"This is normal message" cancelButtonTitle:@"cancel" cancle:^{
    NSLog(@"I clicked normal cancel button");
} confirmButtonTitle:@"confirm" confirm:^{
    NSLog(@"I clicked normal confirm button");
}];

or

__weak typeof(self) weakSelf = self;
[WTAlert showAlertWithBuilder:^(WTAlertBuilder * _Nonnull builder) {
    builder.viewController = weakSelf;
    builder.title = @"This is builder title";
    builder.message = @"This is builer message";
    builder.cancelTitle = @"cancel";
    builder.cancelBlock = ^(){
        NSLog(@"I clicked builder cancel button");
    };
    builder.confirmTitle = @"confirm";
    builder.confirmBlock = ^(){
        NSLog(@"I clicked builder confirm button");
    };
}];

Author

wentianen, [email protected]

License

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

Latest podspec

{
    "name": "WTAlert",
    "version": "0.1.0",
    "summary": "You can use WTAlert show alert by class method.",
    "description": "You can use WTAlert show alert by class method. That is simple.",
    "homepage": "https://github.com/wusuowei/WTAlert",
    "license": "MIT",
    "authors": {
        "wentianen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wusuowei/WTAlert.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "WTAlert": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This