How to remove days in FSCalendar Swift library

2019-09-06 06:55发布

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

enter image description here

for now i only change the color to clear

calendarView.appearance.weekdayTextColor = UIColor.clear

2条回答
手持菜刀,她持情操
2楼-- · 2019-09-06 07:00

You can hide/remvove days from calendar using calendarWeekdayView.

Hide

calendarView.calendarWeekdayView.isHidden = true

Remove

calendarView.calendarWeekdayView.removeFromSuperview()
查看更多
混吃等死
3楼-- · 2019-09-06 07:00

This library contains the property to handle this condition

self.calendar.weekdayHeight = 0

and this will remove the days header.

查看更多
登录 后发表回答