TopAlertView -
MIT
iOS
Objective-C
软件简介
一个简单易用的,从界面上方弹出的alertview。
示例代码:
#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];