我使用CLWeeklyCalendarView在应用程序中显示日历,但奇怪的是CLWeeklyCalendarView没有显示任何日期&日历,月份在iPhone 4s,5,5s simuloter,但它的工作完美在iPhone 6,6s simuloter,为什么这发生任何人都知道,请帮助我,这里我附带屏幕的iPhone 4s
的iphone 6屏幕我用来创建CLWeeklyCalendarView的代码是:
- (void)viewDidLoad
{
[self.view addSubview:self.calendarView];
}
//Initialize third party calendar
-(CLWeeklyCalendarView *)calendarView
{
if(!_calendarView)
{
_calendarView = [[CLWeeklyCalendarView alloc]
initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width,
CALENDER_VIEW_HEIGHT)];
_calendarView.delegate = self;
}
return _calendarView;
}
#pragma mark - CLWeeklyCalendarViewDelegate
-(NSDictionary *)CLCalendarBehaviorAttributes
{
return @{
CLCalendarWeekStartDay : @2, //Start Day of the week, from 1-7 Mon-Sun -- default 1
CLCalendarDayTitleTextColor : [UIColor yellowColor],
CLCalendarSelectedDatePrintColor : [UIColor greenColor],
};
}