文章来源:淘论文网   发布者: 毕业设计   浏览量: 26



还可以点击去查询以下关键词:
[Swift]    [类似于]    [毕业]    [微信]    [ActionSheet]    [【Swift】类似于微毕业博、微信ActionSheet]   

项目介绍:

1、 PGActionSheet使用了UITableView进行复用
2、为了更好的融合当前的界面,PGActionSheet默认的弹出框的透明度是0.7

GitHub 地址:

https://github.com/xiaozhuxiong121/PGActionSheet

CocoaPods安装pod 'PGActionSheet'使用let actionSheet = PGActionSheet(cancelButton: true, buttonList: ['收藏', '保存', '编辑']) present(actionSheet, animated: false, completion: nil)

有两种方式监听点击事件
1、闭包

actionSheet.handler = {index in print('index = ', index) }

2、代理

func actionSheet(_ actionSheet: PGActionSheet, clickedButtonAt index: Int) { print('index = ', index) }

设置title

actionSheet.actionSheetTitle = 'PGActionSheet'

取消弹出框的透明度

actionSheet.actionSheetTranslucent = false

取消背景的半透明

actionSheet.translucent = false

自定义显示字的样式

actionSheet.textFont = UIFont.boldSystemFont(ofSize: 20) actionSheet.textColor = UIColor.orange

自定义取消按钮的样式

actionSheet.cancelTextColor = UIColor.blue actionSheet.cancelTextFont = UIFont.systemFont(ofSize: 20)

自定义title的样式

actionSheet.actionSheetTitleFont = UIFont.boldSystemFont(ofSize: 22) actionSheet.actionSheetTitleColor = UIColor.red

开题报告开题报告

这里还有:


还可以点击去查询:
[Swift]    [类似于]    [毕业]    [微信]    [ActionSheet]    [【Swift】类似于微毕业博、微信ActionSheet]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/4098.docx
  • 上一篇:整理动画弹球旋转
  • 下一篇:基于iOS 3定制D Touch的Demo