CLWeeklyCalendarView不适用于iphone 4s,5,5s simuloter在6& 6S

时间:2016-04-15 11:24:05

标签: ios objective-c

我使用CLWeeklyCalendarView在应用程序中显示日历,但奇怪的是CLWeeklyCalendarView没有显示任何日期&日历,月份在iPhone 4s,5,5s simuloter,但它的工作完美在iPhone 6,6s simuloter,为什么这发生任何人都知道,请帮助我,这里我附带屏幕的iPhone 4s this is iphone 4s screenshot

这是CLWeeklyCalendarView this is iphone 6 screenshot

的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],
         };


}

0 个答案:

没有答案