TSQCalendarCell Class Reference
Inherits from | UITableViewCell |
Declared in | TSQCalendarCell.h TSQCalendarCell.m |
Overview
The TSQCalendarCell
class is an abstract superclass to the two cell types used for display in a TSQCalendarView
.
Most of its interface deals with display properties. The most interesting method is layoutViewsForColumnAtIndex:inRect:
, which is a simple way of handling seven columns.
Tasks
State Properties Set by Calendar View
-
firstOfMonth
property -
daysInWeek
property -
calendar
property -
calendarView
property
Display Properties
-
+ cellHeight
-
textColor
property -
shadowOffset
property -
columnSpacing
property
Initialization
Properties
calendar
The calendar type we’re displaying.
@property (nonatomic, strong) NSCalendar *calendar
Discussion
This is whatever the owning TSQCalendarView
’s calendar
property is set to; it’s likely [NSCalendar currentCalendar]
.
Declared In
TSQCalendarCell.h
calendarView
The owning calendar view.
@property (nonatomic, weak) TSQCalendarView *calendarView
Discussion
This is a weak reference.
Declared In
TSQCalendarCell.h
columnSpacing
The spacing between columns.
@property (nonatomic) CGFloat columnSpacing
Discussion
This defaults to one pixel or 1.0 / [UIScreen mainScreen].scale
.
Declared In
TSQCalendarCell.h
daysInWeek
How many days there are in a week.
@property (nonatomic, readonly) NSUInteger daysInWeek
Discussion
This is usually 7.
Declared In
TSQCalendarCell.h
firstOfMonth
The first day of the month this cell is currently representing.
@property (nonatomic, strong) NSDate *firstOfMonth
Discussion
This can be useful for calculations and for display.
Declared In
TSQCalendarCell.h
Instance Methods
initWithCalendar:reuseIdentifier:
Initializes the cell.
- (id)initWithCalendar:(NSCalendar *)calendar reuseIdentifier:(NSString *)reuseIdentifier
Parameters
- calendar
The
NSCalendar
the cell is representing
- reuseIdentifier
A string reuse identifier, as used by
UITableViewCell
Declared In
TSQCalendarCell.h