After implementing the start date and end date of the calendar by proxy, and setting the titlePlaceholderColor and subtitlePlaceholderColor properties of appearance, I found that when I swipe to the month with the largest date, titlePlaceholderColor, subtitlePlaceholderColor Only the color number 1 is valid. All others are invalid. The same is true after looking at the custom style code
_calendar.appearance.titlePlaceholderColor = UIColor.redColor; _calendar.appearance.subtitlePlaceholderColor = UIColor.redColor;
`- (NSDate )minimumDateForCalendar:(FSCalendar )calendar
{
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
dateFormatter.dateFormat = @"yyyy-MM-dd";
return [dateFormatter dateFromString:@"2024-01-01"];
}
After implementing the start date and end date of the calendar by proxy, and setting the titlePlaceholderColor and subtitlePlaceholderColor properties of appearance, I found that when I swipe to the month with the largest date, titlePlaceholderColor, subtitlePlaceholderColor Only the color number 1 is valid. All others are invalid. The same is true after looking at the custom style code
_calendar.appearance.titlePlaceholderColor = UIColor.redColor; _calendar.appearance.subtitlePlaceholderColor = UIColor.redColor;
`- (NSDate )minimumDateForCalendar:(FSCalendar )calendar { NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; dateFormatter.dateFormat = @"yyyy-MM-dd"; return [dateFormatter dateFromString:@"2024-01-01"]; }