Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bismasaeed00/bscalendarhijrigeorgian
It can show Georgian and Islamic dates in calendar. Multiple selection of dates is suported.
https://github.com/bismasaeed00/bscalendarhijrigeorgian
arabic calendar georgian hijri-calendar hijri-dates ios islamic islamic-dates objective-c selection
Last synced: 4 months ago
JSON representation
It can show Georgian and Islamic dates in calendar. Multiple selection of dates is suported.
- Host: GitHub
- URL: https://github.com/bismasaeed00/bscalendarhijrigeorgian
- Owner: bismasaeed00
- Created: 2017-04-11T12:10:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-14T09:02:48.000Z (over 7 years ago)
- Last Synced: 2023-10-20T18:17:01.864Z (over 1 year ago)
- Topics: arabic, calendar, georgian, hijri-calendar, hijri-dates, ios, islamic, islamic-dates, objective-c, selection
- Language: Objective-C
- Homepage:
- Size: 57.6 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BSCalendarHijriGeorgian
It can show Georgian and Islamic dates in calendar.![alt tag](https://cloud.githubusercontent.com/assets/16186934/25127517/9283fb82-244f-11e7-9b8b-38058479c244.png)
## 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