# RAlertView **Repository Path**: liangzc/RAlertView ## Basic Information - **Project Name**: RAlertView - **Description**: AlertView A pop-up framework, Can be simple and convenient to join your project. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2016-10-22 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Logo](http://git.oschina.net/uploads/images/2016/1014/150057_81398d92_19654.png) RAlertView === AlertView A pop-up framework, Can be simple and convenient to join your project. [![Shippable](https://img.shields.io/shippable/5444c5ecb904a4b21567b0ff.svg?maxAge=2592000?style=flat-square)](https://github.com/roycms/RAlertView) [![CocoaPods](https://img.shields.io/badge/pod-0.0.1-red.svg)](http://cocoapods.org/?q=RAlertView) [![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg?maxAge=2592000?style=flat-square)](https://github.com/roycms/RAlertView/blob/master/LICENSE) [![email](https://img.shields.io/badge/%20email%20-%20roycms%40qq.com%20-yellowgreen.svg)](mailto:roycms@qq.com) ## Installation - Depend on the project ` Masonry `and ` HexColors ` Import `#import "Masonry.h"` `#import "HexColors.h"` - Import the main header file:`#import "RAlertView.h"` ## Preview AlertStyle ```objective-c typedef NS_ENUM(NSInteger,AlertStyle) { SimpleAlert = 0, ConfirmAlert, CancelAndConfirmAlert, }; ``` ![AlertStyle](http://git.oschina.net/uploads/images/2016/1014/144434_0c8b5237_19654.jpeg "AlertStyle") ## Preview AlertTheme ```objective-c typedef NS_ENUM(NSInteger,AlertTheme) { YellowAlert = 0, GreenAlert, BlueAlert, Purple1Alert, Purple2Alert, }; ``` ![AlertTheme](http://git.oschina.net/uploads/images/2016/1014/144615_209bd460_19654.jpeg "AlertTheme") ## SimpleAlert ```objective-c RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert]; alert.contentText = @"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project"; ``` ## ConfirmAlert ```objective-c RAlertView *alert = [[RAlertView alloc] initWithStyle:ConfirmAlert]; alert.theme = Purple1Alert; alert.headerTitle = @"ConfirmAlert"; alert.contentText = @"AlertView A pop-up framework, Can be simple and convenient to join your project"; alert.confirmButtonText = @"Ok"; alert.confirmButtonBlock = ^(){ NSLog(@"Click on the Ok"); }; ``` ## CancelAndConfirmAlert ```objective-c RAlertView *alert = [[RAlertView alloc] initWithStyle:CancelAndConfirmAlert]; alert.headerTitle = @"CancelAndConfirmAlert"; alert.contentText = @"AlertView A pop-up framework, Can be simple and convenient to join your project"; alert.confirmButtonText = @"Ok"; alert.cancelButtonText = @"Cancel"; alert.confirmButtonBlock = ^(){ NSLog(@"Click on the Ok"); }; alert.cancelWindowBlock = ^(){ NSLog(@"Click on the Cancel"); }; ``` ## 期待 * 如果在使用过程中遇到BUG,希望你能Issues我,谢谢(或者尝试下载最新的框架代码看看BUG修复没有) * 如果在使用过程中发现功能不够用,希望你能Issues我,我非常想为这个框架增加更多好用的功能,谢谢 * 如果你想为RAlertView输出代码,请拼命Pull Requests我