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
-
firstOfMonthproperty -
daysInWeekproperty -
calendarproperty -
calendarViewproperty
Display Properties
-
+ cellHeight -
textColorproperty -
shadowOffsetproperty -
columnSpacingproperty
Initialization
Properties
calendar
The calendar type we’re displaying.
@property (nonatomic, strong) NSCalendar *calendarDiscussion
This is whatever the owning TSQCalendarView’s calendar property is set to; it’s likely [NSCalendar currentCalendar].
Declared In
TSQCalendarCell.hcalendarView
The owning calendar view.
@property (nonatomic, weak) TSQCalendarView *calendarViewDiscussion
This is a weak reference.
Declared In
TSQCalendarCell.hcolumnSpacing
The spacing between columns.
@property (nonatomic) CGFloat columnSpacingDiscussion
This defaults to one pixel or 1.0 / [UIScreen mainScreen].scale.
Declared In
TSQCalendarCell.hdaysInWeek
How many days there are in a week.
@property (nonatomic, readonly) NSUInteger daysInWeekDiscussion
This is usually 7.
Declared In
TSQCalendarCell.hfirstOfMonth
The first day of the month this cell is currently representing.
@property (nonatomic, strong) NSDate *firstOfMonthDiscussion
This can be useful for calculations and for display.
Declared In
TSQCalendarCell.hInstance Methods
initWithCalendar:reuseIdentifier:
Initializes the cell.
- (id)initWithCalendar:(NSCalendar *)calendar reuseIdentifier:(NSString *)reuseIdentifierParameters
- calendar
The
NSCalendarthe cell is representing
- reuseIdentifier
A string reuse identifier, as used by
UITableViewCell
Declared In
TSQCalendarCell.h