问题
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