PWAlertController 0.1.4

PWAlertController 0.1.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by wangweicheng.



  • By
  • Paul Wang

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.