当我尝试调用 [newEventStore defaultCalendarForNewEvents] 时,它返回一条错误消息:
[707:907] defaultCalendarForNewEvents failed: Error Domain=EKCADErrorDomain Code=1013 "The operation couldn’t be completed. (EKCADErrorDomain error 1013.)"
[707:907] Error!Failed to save appointment. Description:Error Domain=EKErrorDomain Code=1 "No calendar has been set." UserInfo=0x1fc679f0 {NSLocalizedDescription=No calendar has been set.}
该应用程序运行很长时间。问题第一次来找我。手机运行IOS6 Beta4。型号是 iphone 4。有谁知道 defaultCalendarForNewEvents 方法何时会失败?我无法从谷歌搜索中获得任何有用的信息。