XuniCalendarDaySlot Class Reference
Inherits from | XuniCalendarDaySlotBase : UIView |
---|---|
Declared in | CalendarDaySlot.h |
Other Methods
dayText
Gets or sets the day text displayed in the day slot.
@property (nonatomic) NSString *dayText
Discussion
Gets or sets the day text displayed in the day slot.
Declared In
CalendarDaySlot.h
dayTextRect
Gets or sets the rectangle which display day text inside.
@property (nonatomic) CGRect dayTextRect
Discussion
Gets or sets the rectangle which display day text inside.
Declared In
CalendarDaySlot.h
dayTextColor
Gets or sets the color of the day text.
@property (nonatomic) UIColor *dayTextColor
Discussion
Gets or sets the color of the day text.
Declared In
CalendarDaySlot.h
dayFont
Gets or sets the font for the day text.
@property (nonatomic) UIFont *dayFont
Discussion
Gets or sets the font for the day text.
Declared In
CalendarDaySlot.h
padding
Gets or sets the padding of the content inside the day slot.
@property (nonatomic) double padding
Discussion
Gets or sets the padding of the content inside the day slot.
Declared In
CalendarDaySlot.h
dayHorizontalAlignment
Gets or sets the day horizontal options.
@property (nonatomic) XuniHorizontalAlignment dayHorizontalAlignment
Discussion
Gets or sets the day horizontal options.
Declared In
CalendarDaySlot.h
dayVerticalAlignment
Gets or sets the day vertical options.
@property (nonatomic) XuniVerticalAlignment dayVerticalAlignment
Discussion
Gets or sets the day vertical options.
Declared In
CalendarDaySlot.h
– initWithCalendar:frame:
Initializes and returns a newly allocated XuniCalendarDaySlot object with the specified calendar and frame rectangle.
- (id)initWithCalendar:(XuniCalendar *)calendar frame:(CGRect)frame
Parameters
calendar |
The XuniCalendar object. |
---|---|
frame |
The frame rectangle for the XuniCalendarDaySlot, measured in points. |
Return Value
An initialized XuniCalendarDaySlot object or nil if the object couldn’t be created.
Discussion
Initializes and returns a newly allocated XuniCalendarDaySlot object with the specified calendar and frame rectangle.
Declared In
CalendarDaySlot.h
Extension Methods
xuniCalendar
Gets or sets the calendar.
@property (nonatomic) XuniCalendar *xuniCalendar
Discussion
Gets or sets the calendar.
Declared In
CalendarDaySlotPrivate.h
date
Gets or sets the date of the day slot.
@property (nonatomic) NSDate *date
Discussion
Gets or sets the date of the day slot.
Declared In
CalendarDaySlotPrivate.h
dayBackgroundColor
Gets or sets the background color of the day slot.
@property (nonatomic) UIColor *dayBackgroundColor
Discussion
Gets or sets the background color of the day slot.
Declared In
CalendarDaySlotPrivate.h
dayBorderColor
Gets or sets the color used for the border between day slots.
@property (nonatomic) UIColor *dayBorderColor
Discussion
Gets or sets the color used for the border between day slots.
Declared In
CalendarDaySlotPrivate.h
dayBorderWidth
Gets or sets the border thickness between day slots.
@property (nonatomic) double dayBorderWidth
Discussion
Gets or sets the border thickness between day slots.
Declared In
CalendarDaySlotPrivate.h
state
Gets or sets the state of day slot.
@property (nonatomic) XuniDaySlotState state
Discussion
Gets or sets the state of day slot.
Declared In
CalendarDaySlotPrivate.h
– isSelected
Returns whether the day slot is selected.
- (BOOL)isSelected
Return Value
YES if the day slot is selected, otherwise NO.
Discussion
Returns whether the day slot is selected.
Declared In
CalendarDaySlotPrivate.h
– isAdjacent
Returns whether the day slot is adjacent.
- (BOOL)isAdjacent
Return Value
YES if the day slot is adjacent, otherwise NO.
Discussion
Returns whether the day slot is adjacent.
Declared In
CalendarDaySlotPrivate.h
– drawDetailDaySlotText:state:
Draw detail day slot text.
- (void)drawDetailDaySlotText:(CGRect)rect state:(XuniDaySlotState)state
Parameters
rect |
The rectangle which to draw detail text inside. |
---|---|
state |
The day slot state. |
Discussion
Draw detail day slot text.
Declared In
CalendarDaySlotPrivate.h
– drawDaySlotImage:state:
Draw day slot image.
- (void)drawDaySlotImage:(CGRect)rect state:(XuniDaySlotState)state
Parameters
rect |
The rectangle which to draw image inside. |
---|---|
state |
The day slot state. |
Discussion
Draw day slot image.
Declared In
CalendarDaySlotPrivate.h
– resetDaySlot
Reset day slot.
- (void)resetDaySlot
Discussion
Reset day slot.
Declared In
CalendarDaySlotPrivate.h