Logo

RAlertView

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

Shippable CocoaPods Packagist email doc

Installation

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

alert.isClickBackgroundCloseWindow = YES;
[alert setContentText:@"is ContentText" isAlignmentCenter:YES];

init RAlertView

RAlertView *alert = [[RAlertView alloc] initWithStyle:SimpleAlert];
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");
};

期待