CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Apr 2016 |
Maintained by wangweicheng.
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;
PWAlertController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PWAlertController"Paul Wang, [email protected]
PWAlertController is available under the MIT license. See the LICENSE file for more info.