From bbe9c4918fc7bd2abbc08015d045d82ef1107033 Mon Sep 17 00:00:00 2001 From: Wenchao Ding Date: Fri, 4 Nov 2016 13:38:05 +0800 Subject: [PATCH] Update Example --- Example/DIVCalendarCell.m | 6 ++++++ Example/DIVExampleViewController.m | 1 + 2 files changed, 7 insertions(+) diff --git a/Example/DIVCalendarCell.m b/Example/DIVCalendarCell.m index 581e3f1..ba09097 100644 --- a/Example/DIVCalendarCell.m +++ b/Example/DIVCalendarCell.m @@ -17,6 +17,10 @@ UIImageView *divImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_cat"]]; [self.contentView addSubview:divImageView]; self.divImageView = divImageView; + + self.backgroundView = [[UIView alloc] initWithFrame:self.bounds]; + self.backgroundView.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.1]; + } return self; } @@ -25,6 +29,8 @@ { [super layoutSubviews]; self.divImageView.frame = self.shapeLayer.frame; + self.backgroundView.frame = CGRectInset(self.bounds, 1, 0.5); +} } @end diff --git a/Example/DIVExampleViewController.m b/Example/DIVExampleViewController.m index a288406..3c00b2e 100644 --- a/Example/DIVExampleViewController.m +++ b/Example/DIVExampleViewController.m @@ -75,6 +75,7 @@ - (FSCalendarCell *)calendar:(FSCalendar *)calendar cellForDate:(NSDate *)date { DIVCalendarCell *cell = [calendar dequeueReusableCellWithIdentifier:@"cell" forDate:date]; + NSLog(@"%d",cell.isPlaceholder); return cell; }