GitHub - 416979338/AlertView: AlertView, Ios popup window, A pop-up framework, Can be simple and convenient to join your project. · GitHub
Skip to content

416979338/AlertView

 
 

Repository files navigation

Logo RAlertView

AlertView A pop-up framework, Can be simple and convenient to join your project.

Shippable CocoaPods Packagist email doc

Warning content

Warning content

Installation

  • Depend on the project Masonryand HexColors Import #import "Masonry.h" #import "HexColors.h"
  • Import the main header file:#import "RAlertView.h"

cocoapods

pod 'AlertView'

Preview AlertStyle

typedef NS_ENUM(NSInteger,AlertStyle) {
    SimpleAlert = 0,
    ConfirmAlert,
    CancelAndConfirmAlert,
};

RAlertView Preview

Preview AlertTheme

typedef NS_ENUM(NSInteger,AlertTheme) {
    YellowAlert = 0,
    GreenAlert,
    BlueAlert,
    Purple1Alert,
    Purple2Alert,
};

RAlertView Preview

Some feature set

  • Click on the background and any position hidden pop-up window
alert.isClickBackgroundCloseWindow = YES;
  • Set bounced content text center
[alert setContentText:@"is ContentText" isAlignmentCenter:YES];

init RAlertView

  • initWithStyle AlertStyle
RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];
  • initWithStyle AlertStyle and width
RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert width:0.8];

SimpleAlert

RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];
alert.contentText = @"SimpleAlert \nAlertView A pop-up framework, Can be simple and convenient to join your project";

ConfirmAlert

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

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我

About

AlertView, Ios popup window, A pop-up framework, Can be simple and convenient to join your project.

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Objective-C 48.2%
  • HTML 19.6%
  • CSS 18.6%
  • Ruby 13.6%