Skip to content

LuciusLu/TopAlertView

Repository files navigation

demo

Alt text


import

FontAwesome.ttf to Info.plist -> Fonts provided by application


code

#import "MozTopAlertView.h"

[MozTopAlertView showWithType:MozAlertTypeInfo text:@"Info" parentView:self.view];

MozTopAlertView *alertView = [MozTopAlertView showWithType:MozAlertTypeSuccess text:@"Success" parentView:self.view];
alertView.dismissBlock = ^(){
    NSLog(@"dismissBlock");
};

[MozTopAlertView showWithType:MozAlertTypeWarning text:@"Warning" doText:@"undo" doBlock:^{
    
} parentView:self.view];

[MozTopAlertView showWithType:MozAlertTypeError text:@"Error" doText:@"undo" doBlock:^{
    
} parentView:self.view];

About

custom alertview with success, fail, error, undo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published