自定义UIAlertView、UIActionSheet,高仿系统UIAlertView、UIActionSheet
来源:互联网 发布:淘宝专业刷信誉 编辑:程序博客网 时间:2024/05/18 05:00
github地址
主要自定义了以下的功能:
- 支持title、message、操作按钮文字大小的修改
- 支持title、message、操作按钮文字颜色的修改
- 支持message行间距的设置
- 清除window上的模态弹窗只需要一句代码。(可配置哪个弹窗不清除)
- 支持动态添加按钮
ps:看见很多自定义alertView使用了单例,ZOEAlertView没有使用单例,是因为考虑到如果同时弹出两个或者更多的弹窗时,需要保留每个弹窗的内容,而不是直接覆盖(可能被覆盖的弹窗内容非常的重要)。同时也借鉴了UIAlertView的效果,在window上有多个alertView的时候,界面只保留最后面show出来的view,当dismiss一个alertView的时候把上一个alertView显示出来。我觉得这样的效果比较符合实际。
使用方法和UIAlertView相同,不同的是ZOEAlertView没有使用代理,而是使用了Block回调点击事件。
1 0
- 自定义UIAlertView、UIActionSheet,高仿系统UIAlertView、UIActionSheet
- UIAlertview UIActionSheet
- UIAlertView&UIActionSheet
- UIAlertView、UIActionSheet
- UIAlertView、UIActionSheet
- MMPopupView(自定义UIAlertView、UIActionSheet、UIDatePicker)
- 如何自定义UIActionSheet(UIAlertView)中的内容
- 如何自定义UIActionSheet(UIAlertView)中的内容
- 如何自定义UIActionSheet(UIAlertView)中的内容
- UIAlertView,UIActionSheet, UIMenuController
- UIAlertView vs UIActionSheet
- UIActionSheet与UIAlertView
- UIActionSheet与UIAlertView
- UIActionSheet与UIAlertView
- UIAlertView、UIActionSheet兼容iOS8
- UIActionSheet与UIAlertView
- IOS-UIAlertView和UIActionSheet
- UIActionSheet和UIAlertView
- [转] C++11 并发指南系列
- windows批处理文件设置环境变量,包含路径、库目录等
- Yii memcache缓存
- Git的常用命令,大白话解释,让你快速上手
- Java读取Properties文件工具类
- 自定义UIAlertView、UIActionSheet,高仿系统UIAlertView、UIActionSheet
- 25作业
- js构造对象
- Spring MVC各个视图解析器的含义
- Android:控件GridView的使用
- 2017年最新5款好用的库
- util.Date与sql.Date如何比较
- 居中
- Tinywebserver-一个简易的web服务器