bismasaeed00 / BSCalendarHijriGeorgian

It can show Georgian and Islamic dates in calendar. Multiple selection of dates is suported.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BSCalendarHijriGeorgian

It can show Georgian and Islamic dates in calendar.

alt tag

How To Get Started

Download the project and drag files of BSIslamicCalendar in you project. Don't forgot to import

#import "BSIslamicCalendar.h"

Now, you can create an instance of calendar and add it to your view like that,

BSIslamicCalendar *newCalendar=[[BSIslamicCalendar alloc] initWithFrame:CGRectMake(10, 50, 355, 355)];
[self.view addSubview:newCalendar];

or you can place a view into your storyboard and set it's class to BSIslamicCalendar.

Customization

All the text and background colors can be customized

-(void)setDateTextColor:(UIColor*)color;
-(void)setDateBGColor:(UIColor*)color;
-(void)setDaysNameColor:(UIColor*)color;
-(void)setSelectedDateBGColor:(UIColor*)color;
-(void)setCurrentDateTextColor:(UIColor*)color;

You can also set islamic dates to arabic locale by using this line:

[newCalendar setIslamicDatesInArabicLocale:YES];

UPDATE

Implement the delegate to get selected dates.

-(BOOL)islamicCalendar:(BSIslamicCalendar*)calendar shouldSelectDate:(NSDate*)date;
-(void)islamicCalendar:(BSIslamicCalendar*)calendar dateSelected:(NSDate*)date withSelectionArray:(NSArray*)selectionArry;

Happy Codding!!!1

About

It can show Georgian and Islamic dates in calendar. Multiple selection of dates is suported.


Languages

Language:Objective-C 100.0%