Update Example

This commit is contained in:
Wenchao Ding 2016-11-04 13:38:05 +08:00
parent 420e438f56
commit bbe9c4918f
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -75,6 +75,7 @@
- (FSCalendarCell *)calendar:(FSCalendar *)calendar cellForDate:(NSDate *)date
{
DIVCalendarCell *cell = [calendar dequeueReusableCellWithIdentifier:@"cell" forDate:date];
NSLog(@"%d",cell.isPlaceholder);
return cell;
}