Skip to content

bismasaeed00/BSCalendarHijriGeorgian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published