项目作者: wangweicheng7

项目描述 :
支持iOS 7 的AlertController
高级语言: Objective-C
项目地址: git://github.com/wangweicheng7/PWAlertController.git
创建时间: 2016-03-25T11:14:03Z
项目社区:https://github.com/wangweicheng7/PWAlertController

开源协议:MIT License

下载


PWAlertController

logo
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

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

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:

  1. pod "PWAlertController"

Author

Paul Wang, wangwc@putao.com

License

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