2014-06-13 49 views
0

使用下面的代码显示该视图上缺少EKCalendarChooser View.But Edit按钮。EKCalendarChooser上缺少编辑按钮查看

EKEventStore * eventStore = [[EKEventStore alloc] init]; 

    EKCalendarChooser *calendarChooser = [[EKCalendarChooser alloc] 
               initWithSelectionStyle:EKCalendarChooserSelectionStyleMultiple 
              displayStyle:EKCalendarChooserDisplayAllCalendars 
              eventStore:eventStore]; 

calendarChooser.modalTransitionStyle = UIModalTransitionStyleCoverVertical; 
     calendarChooser.delegate = self; 
     calendarChooser.navigationItem.hidesBackButton = YES; 
     [calendarChooser.navigationController setNavigationBarHidden:NO]; 
     calendarChooser.navigationItem.backBarButtonItem = calendarChooser.editButtonItem; 
      [self.navigationController pushViewController:calendarChooser animated:NO]; 

感谢您的帮助..

回答