UIAlertView的一个代替:TAlertView

分享到:
TAlertView是UIAlertView的一个代替。

Usage

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

Installation

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

pod "TAlertView"

Example

example.gif

//Alert 6
TAlertView *alert = [[TAlertView alloc] initWithTitle:nil
message:@"This alert show two buttons horizontally"
buttons:@[@"No", @"Yes"]
andCallBack:^(TAlertView *alertView, NSInteger buttonIndex) {}];
alert.buttonsAlign = TAlertViewButtonsAlignHorizontal;
[alert showAsMessage];
//Alert 1
[[[TAlertView alloc] initWithTitle:@"Great!" andMessage:@"This is a basic alert"] show];

项目主页:http://www.open-open.com/lib/view/home/1416983923690

昵    称:
验证码:

相关文档: