How can I solve NSInternalInconsistencyException', reason: '+entityForName: fail report

前端 未结 2 2099
离开以前
离开以前 2021-01-21 08:47

My code looks like that:

NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
        NSEntityDescription *entity = [[self.fet         


        
2条回答
  •  失恋的感觉
    2021-01-21 09:23

    You say you have an entity named "Obrta", but the code is creating an object of type "Obrat". Fixing that typo should fix your issue.

提交回复
热议问题