是的,FSCalendar 有错误的实现——它是……。喜欢使用 locale.calendar.monthSymbols 而不是 locale.calendar.standaloneMonthSymbols
快速解决方案是修复文件 FSCalendarHeaderView.m 中的 FSCalendar 代码
(void)configureCell:(FSCalendarHeaderCell *)cell atIndexPath:(NSIndexPath *)indexPath
{
case FSCalendarScopeMonth: {
//...
//...
text = [_calendar.formatter stringFromDate:date]; //**1
}
}
**1 必须改成 sth。喜欢
NSDateComponents *cc = [self.calendar.gregorian components:(NSCalendarUnitMonth | NSCalendarUnitYear) fromDate:date];
text = [NSString stringWithFormat:@"%@ %ld", _calendar.formatter.standaloneMonthSymbols[cc.month - 1], (long)cc.year];