2014-06-13 89 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]; 

感謝您的幫助..

回答