ELAlertView 1.0.0

ELAlertView 1.0.0

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年5月

rainer维护。



  • rainer-liao

ELAlertView支持自定义内容视图和弹框外观。【ELAlertView 可以自定义弹框的外形和其内容.】
针对带图片的alertView是不错的选择。【最关键的是可以放置图片.】
您可以用它来替换系统的UIAlertController/UIAlertView。【你可以使用它来代替系统的UIAlertController/UIAlertView.】
支持iOS7.【支持iOS7.】

本项目受到NYAlertViewController的启发。

Flipboard playing multiple GIFs

安装

手动

只需下载zip文件,然后将ELAlertView目录拖放到您的Xcode项目即可。【下载本项目,将项目中的ELAlertView文件拖到你的Xcode工程就OK了.】

如何使用

// Import the class
#import "ELAlertView.h"

// ...
    // Create an instance
    ELAlertView *alertView = [[ELAlertView alloc] initWithStyle:ELAlertViewStyleDefault];

    // Set title and message if needed
    alertView.title   = @"title";
    alertView.message = @"message";

    // Custom your appearance
    alertView.titleTopMargin = 17;
    alertView.messageLeadingAndTrailingPadding = 20;
    alertView.messageAlignment = NSTextAlignmentLeft;
    alertView.messageHeight = 270;
    alertView.alertViewBackgroundColor = [UIColor redColor];
    alertView.titleColor = [UIColor blueColor];
    alertView.messageColor =[UIColor purpleColor];
    alertView.buttonBottomMargin = 30;

    // Add alert actions
    ELAlertAction *action = [ELAlertAction actionWithTitle:NSLocalizedString(@"ok", nil)
                                                     style:ELAlertActionStyleDestructive
                                                   handler:^(ELAlertAction *action) {

                                                   }];
    [alertView addAction:action];

    // Show the alertView
    [alertView show];

许可证

本项目采用MIT许可证发布。