Remove title attributes.

This commit is contained in:
WenchaoD 2017-05-06 09:42:24 +08:00
parent 0a88f0a1e4
commit 7367409d69
3 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -92,7 +92,6 @@
{
[super layoutSubviews];
_titleLabel.text = self.title;
if (_subtitle) {
_subtitleLabel.text = _subtitle;
if (_subtitleLabel.hidden) {