Ios 仅当存在单个日历帐户时才出现EKCalendarChooser问题
我正在使用iOS 7.1并执行以下操作,以便使用EventKit向用户显示可写日历:Ios 仅当存在单个日历帐户时才出现EKCalendarChooser问题,ios,objective-c,eventkit,Ios,Objective C,Eventkit,我正在使用iOS 7.1并执行以下操作,以便使用EventKit向用户显示可写日历: EKEventStore *eventStore = [[EKEventStore alloc] init]; EKCalendarChooser *calendarChooser = [[EKCalendarChooser alloc] initWithSelectionStyle:EKCalendarChooserSelectionStyleMultiple displayStyle: EKCalendar
EKEventStore *eventStore = [[EKEventStore alloc] init];
EKCalendarChooser *calendarChooser = [[EKCalendarChooser alloc] initWithSelectionStyle:EKCalendarChooserSelectionStyleMultiple displayStyle: EKCalendarChooserDisplayWritableCalendarsOnly eventStore:eventStore];
[self.navigationController pushViewController:calendarChooser animated:YES];
我注意到只有在对单个日历帐户进行测试时才会出现两种非常奇怪的行为:
EKEventStore *eventStore = [[EKEventStore alloc] init];
EKCalendarChooser *calendarChooser = [[EKCalendarChooser alloc] initWithSelectionStyle:EKCalendarChooserSelectionStyleMultiple displayStyle: EKCalendarChooserDisplayWritableCalendarsOnly eventStore:eventStore];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController: calendarChooser];
这应该行得通。我在iPad上用了一个popover控制器,但用另一个UINavigationController也可以
@苹果:请更新文档以避免此类问题您能发布崩溃信息吗?谢谢您的回复。不幸的是,我似乎无法在iOS 7.1.2中重新创建该问题。也许它已经修复了?我把EKCalendarChooser直接放进了PopupController,它是IOS8测试版,所以可能这也是一个重新引入的bug。