@IBAction func lastMonth(_ sender: UIButton) {
if month == 1 {
year -= 1
month = 12
}else {
month -= 1
}
dateDisplayLabel.text = String(year)+"-"+String(month)
firstDayOfMonth = date.getCountOfDaysInMonth(year: year, month: month).week
numberOfTheMonth = date.getCountOfDaysInMonth(year: year, month: month).count
CalendarCollectionView.reloadData()
}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持ASPKU。
注:相关教程知识阅读请移步到IOS开发频道。










