文件名称:ios-LGLAlertView.zip
文件大小:118KB
文件格式:ZIP
更新时间:2022-07-31 13:43:00
弹出视图
这个就把系统的提示框都进行了一个封装,使用起来简单,一句代码即可,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];*/