XuniCalendarRange Class Reference
Inherits from | NSObject |
---|---|
Declared in | CalendarRange.h |
startDate
Gets or sets the start date of range.
@property (nonatomic) NSDate *startDate
Discussion
Gets or sets the start date of range.
Declared In
CalendarRange.h
endDate
Gets or sets the end date of range.
@property (nonatomic) NSDate *endDate
Discussion
Gets or sets the end date of range.
Declared In
CalendarRange.h
– initWithStartDate:endDay:calendar:
Initializes and returns a newly allocated XuniCalendarRange object.
- (instancetype)initWithStartDate:(NSDate *)start endDay:(NSDate *)end calendar:(XuniCalendar *)calendar
Parameters
start |
The start date. |
---|---|
end |
The end date. |
calendar |
the XuniCalendar we need a range for. |
Return Value
An initialized XuniCalendarRange object or nil if the object couldn’t be created.
Discussion
Initializes and returns a newly allocated XuniCalendarRange object.
Declared In
CalendarRange.h
– containsDay:
Returns whether a day falls within the range.
- (BOOL)containsDay:(NSDateComponents *)day
Parameters
day |
The day for which to perform the calculation. |
---|
Return Value
YES if the given day is within the range, otherwise NO.
Discussion
Returns whether a day falls within the range.
Declared In
CalendarRange.h
– containsDate:
Returns whether a date falls within the range.
- (BOOL)containsDate:(NSDate *)date
Parameters
date |
The date for which to perform the calculation. |
---|
Return Value
YES if the given date is within the range, otherwise NO.
Discussion
Returns whether a date falls within the range.
Declared In
CalendarRange.h
– containsDateYM:
Returns whether a date’s year and month falls within the range.
- (BOOL)containsDateYM:(NSDate *)date
Parameters
date |
The date for which to perform the calculation. |
---|
Return Value
YES if the given date is within the range, otherwise NO.
Discussion
Returns whether a date’s year and month falls within the range.
Declared In
CalendarRange.h
– containsDateY:
Returns whether a date’s year falls within the range.
- (BOOL)containsDateY:(NSDate *)date
Parameters
date |
The date for which to perform the calculation. |
---|
Return Value
YES if the given date is within the range, otherwise NO.
Discussion
Returns whether a date’s year falls within the range.
Declared In
CalendarRange.h
– addExcludedDates:
Add date to excluded dates array.
- (void)addExcludedDates:(NSDate *)date
Parameters
date |
The added date. |
---|
Discussion
Add date to excluded dates array.
Declared In
CalendarRange.h
– resetExcludedDates
Reset excluded dates array.
- (void)resetExcludedDates
Discussion
Reset excluded dates array.
Declared In
CalendarRange.h