Update Example
This commit is contained in:
parent
420e438f56
commit
bbe9c4918f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@
|
|||
- (FSCalendarCell *)calendar:(FSCalendar *)calendar cellForDate:(NSDate *)date
|
||||
{
|
||||
DIVCalendarCell *cell = [calendar dequeueReusableCellWithIdentifier:@"cell" forDate:date];
|
||||
NSLog(@"%d",cell.isPlaceholder);
|
||||
return cell;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue