EKEventAttendeesEditItem中崩溃

时间:2019-03-05 22:17:15

标签: ios eventkit

当用户查看EKEventEditViewController时,有时会发生崩溃。

NSInternalInconsistencyException: attempt to delete row 0 from section 2 which only contains 0 rows before the update
Sample Stack Trace Snippet (top 25 frames):
    Stack Trace:
            CoreFoundation __exceptionPreprocess :
            libobjc.A.dylib objc_exception_throw :
            CoreFoundation +[NSException raise:format:arguments:] :
            Foundation -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] :
            UIKitCore -[UITableView _endCellAnimationsWithContext:] :
            UIKitCore -[UITableView _updateRowsAtIndexPaths:withUpdateAction:rowAnimation:usingPresentationValues:] :
            UIKitCore -[UITableView reloadRowsAtIndexPaths:withRowAnimation:] :
            EventKitUI -[EKCalendarItemEditor editItem:wantsRowReload:] :
            EventKitUI __59-[EKEventAttendeesEditItem refreshFromCalendarItemAndStore]_block_invoke_2.113 :
            libdispatch.dylib _dispatch_call_block_and_release :
            libdispatch.dylib _dispatch_client_callout :
            libdispatch.dylib _dispatch_main_queue_callback_4CF :
            CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ :
            CoreFoundation __CFRunLoopRun :
            CoreFoundation CFRunLoopRunSpecific :
            GraphicsServices GSEventRunModal :
            UIKitCore UIApplicationMain :

第2节,第0行指向此screenshot中的“被邀请者”行。

仅在iOS 12.1.4中发生崩溃。我试图通过将事件存储设置为nil,重置事件存储并尝试编辑只读日历来手动重现它。

如何重现并修复此崩溃?

0 个答案:

没有答案