Remove title attributes.
This commit is contained in:
parent
0a88f0a1e4
commit
7367409d69
|
|
@ -1530,7 +1530,7 @@ void FSCalendarRunLoopCallback(CFRunLoopObserverRef observer, CFRunLoopActivity
|
|||
NSDate *date = [self.calculator dateForIndexPath:indexPath];
|
||||
cell.image = [self.dataSourceProxy calendar:self imageForDate:date];
|
||||
cell.numberOfEvents = [self.dataSourceProxy calendar:self numberOfEventsForDate:date];
|
||||
cell.title = [self.dataSourceProxy calendar:self titleForDate:date] ?: @([self.gregorian component:NSCalendarUnitDay fromDate:date]).stringValue;
|
||||
cell.titleLabel.text = [self.dataSourceProxy calendar:self titleForDate:date] ?: @([self.gregorian component:NSCalendarUnitDay fromDate:date]).stringValue;
|
||||
cell.subtitle = [self.dataSourceProxy calendar:self subtitleForDate:date];
|
||||
cell.selected = [_selectedDates containsObject:date];
|
||||
cell.dateIsToday = self.today?[self.gregorian isDate:date inSameDayAsDate:self.today]:NO;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ typedef NS_ENUM(NSUInteger, FSCalendarMonthPosition);
|
|||
@property (weak, nonatomic) FSCalendar *calendar;
|
||||
@property (weak, nonatomic) FSCalendarAppearance *appearance;
|
||||
|
||||
@property (strong, nonatomic) NSString *title;
|
||||
@property (strong, nonatomic) NSString *subtitle;
|
||||
@property (strong, nonatomic) UIImage *image;
|
||||
@property (assign, nonatomic) FSCalendarMonthPosition monthPosition;
|
||||
|
|
|
|||
|
|
@ -92,7 +92,6 @@
|
|||
{
|
||||
[super layoutSubviews];
|
||||
|
||||
_titleLabel.text = self.title;
|
||||
if (_subtitle) {
|
||||
_subtitleLabel.text = _subtitle;
|
||||
if (_subtitleLabel.hidden) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue