小编Moh*_*abi的帖子

iOS应用程序错误:我在日期计算中搞砸了

我的应用程序随机崩溃,我无法生成用户设备中出现的相同情况,这里有来自崩溃报告的更多详细信息:

崩溃等级:

NSInternalInconsistencyException
Run Code Online (Sandbox Code Playgroud)

功能:

-[CalendarViewController deleteEvent:] 
Run Code Online (Sandbox Code Playgroud)

方法实现如下:

  -(void) deleteEvent: (EKSpan ) span :(EKEvent *) eventToDelete{

    NSError* error = nil;

    [sharedEventStore removeEvent:eventToDelete span:span error:&error];

   // refresh the UI   
}
Run Code Online (Sandbox Code Playgroud)

堆栈跟踪:

0 CoreFoundation 0x33acf2a3 <redacted> + 162
1 libobjc.A.dylib 0x3b7ec97f objc_exception_throw + 30
2 CoreFoundation 0x33acf15d <redacted> + 0
3 Foundation 0x343a4ab7 <redacted> + 90
4 EventKit 0x34208b33 <redacted> + 1642
5 EventKit 0x342084c1 <redacted> + 408
6 EventKit 0x342091f7 <redacted> + 306
7 EventKit 0x341fa199 <redacted> + 144
8 EventKit 0x341fa0ff …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ipad ios eventkit

6
推荐指数
1
解决办法
759
查看次数

标签 统计

eventkit ×1

ios ×1

ipad ×1

iphone ×1

objective-c ×1