How to remove days in FSCalendar Swift library

若如初见. 提交于 2019-12-25 06:54:45

问题


i'm using FSCalendar and want to remove days (Sun, mon, Tue, Wed, Thu, Fri, and Sat) from calendar

for now i only change the color to clear

calendarView.appearance.weekdayTextColor = UIColor.clear

回答1:


You can hide/remvove days from calendar using calendarWeekdayView.

Hide

calendarView.calendarWeekdayView.isHidden = true

Remove

calendarView.calendarWeekdayView.removeFromSuperview()



回答2:


This library contains the property to handle this condition

self.calendar.weekdayHeight = 0

and this will remove the days header.



来源:https://stackoverflow.com/questions/42994617/how-to-remove-days-in-fscalendar-swift-library

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!