BSYAlertBox

268 阅读1分钟

今天公司任务量比较少,所以自己封装了一个提示弹窗控件BSYAlertBox,它是一款多功能提示控件,支持居中/居左/居右/居上/居下等显示,具体可以看实现样例,可以自定义背景颜色/字体颜色/显示时间等,希望大家喜欢并Star支持。现在已经支持cocoapods安装。具体方法使用如下:

//自定义背景颜色/字体颜色/显示时间的方法 // [[BSYAlertBox alloc]initBottomAlertWithText:@"提示错误❌❌❌❌❌❌❌❌❌❌" During:2 textColor:[UIColor redColor] bgColor:[UIColor orangeColor]]; //默认方法 [[BSYAlertBox alloc] initBottomAlertWithText:@"提示错误❌❌❌❌❌❌❌❌❌❌"];

看看效果吧:

项目地址:https://github.com/baishiyun/BSYAlertBox