iOS漂亮的可自定义的警报视图:OpinionzAlertView

jopen 9年前

OpinionzAlertView 漂亮的可自定义的警报视图.您可以选择预定义的图标信息,警告,成功和错误警报。自定义颜色或设置你想要的图像。

//  //  ViewController.m  //  Demo  //  //  Created by Opinionz.io on 18/08/15.  //  Copyright (c) 2015 Opinionz.io. All rights reserved.  //    #import "ViewController.h"    #import <OpinionzAlertView/OpinionzAlertView.h>    - (IBAction)buttonHandlerAlert:(id)sender {        OpinionzAlertView *alertView = [[OpinionzAlertView alloc] initWithTitle:@"Title"                                                                      message:@"message"                                                            cancelButtonTitle:@"Cancel"                                                            otherButtonTitles:nil];        //    alertView = [[OpinionzAlertView alloc] initWithTitle:@"Title"      //                                                 message:@"message"      //                                       cancelButtonTitle:@"Cancel"      //                                       otherButtonTitles:nil      //                                 usingBlockWhenTapButton:^(OpinionzAlertView *alertView, NSInteger buttonIndex) {      //                                           //                                     NSLog(@"Tapped button at index : %li", (long)buttonIndex);      //                                     NSLog(@"buttonTitle: %@", [alertView buttonTitleAtIndex:buttonIndex]);      //                                 }];        [alertView show];  }

Preview

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