Latest 0.1.4
Homepage https://github.com/wangweicheng7/PWAlertController
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.
easy to use

PWAlertController *alert = [PWAlertController sheetWithTitle:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"删除" buttonClicked:^(NSUInteger index) {
    NSLog(@"alert selected at index:%ld", index);
} otherButtonTitles:@"标题一",@"标题二",@"标题三",nil];
[self presentViewController:alert animated:YES completion:^{

}];

iOS 7 下, [self presentViewController:alert animation:YES completion:nil]; 前面要写一句 self.modalPresentationStyle = UIModalPresentationCurrentContext;

Requirements

Installation

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

pod "PWAlertController"

Author

Paul Wang, [email protected]

License

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

Latest podspec

{
    "name": "PWAlertController",
    "version": "0.1.4",
    "summary": "u652fu6301 iOS 7 u7684AlertController.",
    "description": "u652fu6301 iOS 7 u7684AlertControlleruff0cu627fu8f7du5728u4e00u4e2aUIViewControlleru4e0a",
    "homepage": "https://github.com/wangweicheng7/PWAlertController",
    "license": "MIT",
    "authors": {
        "Paul Wang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wangweicheng7/PWAlertController.git",
        "tag": "0.1.4"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "PWAlertController": [
            "Pod/Assets/*.png"
        ]
    },
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This