Skip to content

Commit

Permalink
Add documents about date range selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Husseinhj authored Nov 21, 2017
1 parent 1f8d8ad commit bd5e611
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ if you set <i>useVeryShortWeekdaySymbols property</i> to `YES`, use days of week
<pre>
self.calendarView.useVeryShortWeekdaySymbols = YES;
</pre>

## How to select range of date
![English range selection](https://raw.githubusercontent.com/Husseinhj/ios_calendar/feat/range_selection/img/@2x-English%20selection.png)
![Persian range selection](https://raw.githubusercontent.com/Husseinhj/ios_calendar/feat/range_selection/img/@2x-Persian%20selection.png)
If user Long press on items, can select date and for select end of range, Long press on end date.
For get range date use `didSelectRangeForStartDate:endDate` delegate method like this :
<pre>
- (void) didSelectRangeForStartDate:(NSDate *)startDate andEndDate:(NSDate *)endDate{
NSLog(@"%s: start date :%@ \n end date : %@",__PRETTY_FUNCTION__,startDate,endDate);
}
</pre>

## How to handle changing date event
For this you should use <i>CalendarViewDelegate</i> protocol:
<pre>
Expand Down

0 comments on commit bd5e611

Please sign in to comment.