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



还可以点击去查询以下关键词:
[Swift]    [弹出]    [定制]    [日历]    [选择]    [【Swift】弹出定制日历选择框]   

项目介绍:

PGActionSheetCalendar

使用FSCalendar进行封装的

CocoaPods安装pod 'PGActionSheetCalendar'使用let calendar = PGActionSheetCalendar() present(calendar, animated: false, completion: nil)高级用法

有两种监听选中日期的方法

1、代理

calendar.delegate = self func calendar(_ calendar: PGActionSheetCalendar, didSelectDate components: DateComponents) { print('year = ', components.year!,'month = ', components.month!, 'day = ', components.day!) }

2、闭包

calendar.didSelectDateComponents = {components in print('year = ', components.year!,'month = ', components.month!, 'day = ', components.day!) }

设置title

let label = calendar.titleLabel label.text = 'PGCalendar'

设置按钮的样式

calendar.cancelButton.setTitleColor(UIColor.red, for: .normal) calendar.sureButton.setTitleColor(UIColor.red, for: .normal)

设置日历的样式

https://github.com/WenchaoD/FSCalendar

开题报告开题报告

这里还有:


还可以点击去查询:
[Swift]    [弹出]    [定制]    [日历]    [选择]    [【Swift】弹出定制日历选择框]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/4060.docx
  • 上一篇:好看实用的日期时间选择器--CCTimePicker
  • 下一篇:模型存毕业设计储.