응용 프로그램이 사진을 서버에 업로드합니다.어설 션 오류 - [UITableView _endCellAnimationsWithContext :] 테이블 뷰를 업데이트하는 중 코어 데이터 가져 오는 중 오류가 발생했습니다.
사용자가 업로드 할 사진을 선택하면 사진의 정보가 핵심 데이터에 저장됩니다. fetchedResultsController
을 사용하여 사진 목록을 보여주는 테이블 뷰가 채워집니다.
테이블 뷰에는 진행중인 업로드 섹션, 대기중인 사진 및 완료된 업로드 섹션이 있으며 상태에 따라 업데이트됩니다.
하지만 업로드 할 사진을 추가하려고 할 때 이전 세트가 계속 업로드되는 동안 다시 선택하면 다음과 같은 오류가 발생합니다.
그리고이 후에 테이블 뷰가 비워집니다. 나는 tableview에서 아무것도 볼 수 없습니다.
CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:. Invalid update: invalid number of rows in section 1. The number of rows contained in an existing section after the update (96) must be equal to the number of rows contained in that section before the update (62), plus or minus the number of rows inserted or deleted from that section (21 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out). with userInfo (null)