LGLAlertView
查看次数:1836
下载次数:365
上传时间:2016-10-08
大小:117 B
这个就把系统的提示框都进行了一个封装,使用起来简单,一句代码即可,github下载地址:https://github.com/liguoliangiOS/LGLAlertView.git
使用方法如下:(下面的每一点都是一个不通的提示类型,可根据需要自行选择)
// LGLAlertViewActionStyleDestructive LGLAlertViewActionStyleDefault LGLAlertViewActionStyleCancel
(1)// [LGLAlertView showAlertViewWith:self title:@"温馨提示" message:@"操作成功" buttonTitle:@"知道了" buttonStyle:LGLAlertViewActionStyleDefault];
(2)[LGLAlertView showAlertViewWith:self title:@"温馨提示" message:@"操作成功" CallBackBlock:^(NSInteger btnIndex) {
NSLog(@"%ld", btnIndex);
} cancelButtonTitle:@"取消" destructiveButtonTitle:@"撤销" otherButtonTitles:@"确定", @"666", @"777",nil];
(3)/* [LGLAlertView showAlertTextFieldViewWith:self title:nil message:@"您的宝贵意见" TextFeildCallBackBlock:^(NSString *text) {
NSLog(@"%@", text);
} cancelButtonTitle:@"取消" otherButtonTitles:@"确定"];*/
(4)//[LGLAlertView showAlertActionSheetViewWith:self title:@"2222" message:@"6666" buttonTitle:nil buttonStyle:LGLAlertViewActionStyleDestructive];
(5) /*[LGLAlertView showAlertActionSheetWith:self title:nil message:nil callbackBlock:^(NSInteger btnIndex) {
NSLog(@"%ld", btnIndex);
} destructiveButtonTitle:nil cancelButtonTitle:nil otherButtonTitles:@"确定", @"wed", @"dfd", @"rtfgb", nil];*/
收藏