Open mohsinalimat opened 9 years ago
Hi Mohsinalimat, I modified the first two methods at the JTDateHelper to ,
(NSCalendar *)calendar { if(!_calendar){
_calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierIslamic];
_calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSIslamicCalendar];
_calendar.timeZone = [NSTimeZone localTimeZone]; _calendar.locale =[NSLocale localeWithLocaleIdentifier:@"ar"];; }
return _calendar; }
(NSDateFormatter )createDateFormatter { NSDateFormatter dateFormatter = [NSDateFormatter new]; [dateFormatter setCalendar:_calendar]; [dateFormatter setTimeStyle:NSDateFormatterNoStyle]; [dateFormatter setDateStyle:NSDateFormatterLongStyle]; [dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"ar"]];
dateFormatter.timeZone = self.calendar.timeZone; dateFormatter.locale = self.calendar.locale;
return dateFormatter; } Thank you Nada Gamal
Hello,
i want to show islamic calendar in your calendar demo.
how to show islamic calendar?
Thanks, Mohsinali Matiya