1

How do I configure FSCalendar to support RTL language numerals ?

Here's the code I'm using

FSCalendar *calendar = [[FSCalendar alloc] initWithFrame:CGRectMake(0, 0, 300, 320)];
calendar.dataSource = self;
calendar.delegate = self;
calendar.backgroundColor = [UIColor whiteColor];
calendar.appearance.headerMinimumDissolvedAlpha = 0;
calendar.appearance.caseOptions = FSCalendarCaseOptionsHeaderUsesUpperCase;
calendar.scrollDirection = FSCalendarScrollDirectionHorizontal;
calendar.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"ar_AE"];

When I launch the calendar view, I cannot get the dates to display using the correct language numerals

enter image description here As you can see only partial content is displayed correctly. I'm on iOS 10.

@WenchaoD Any thoughts on how to get this to work ?

4

1 に答える 1