0
votes

I am trying to do an App with tab bar controller, one of this tab has to be a tableView with core data functions. The first question is do I need to use a navigation controller before the TableView or I can go from tab bar direct to the TableView?

At the moment my project is from tab Bar to tableView but I am stack on this error "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Event' " that looks a pretty much common error.

When I run the app is working but when I am trying to go on the tab with table view is crashing. I am new in programming is quite easy to be stack for me.

Any idea/help.

Thanks

1

1 Answers

0
votes

You do not have to use a navigation controller to use a table view controller.

That core data error means the entity "Event" is not in your model. Either you are not loading the right model, or you are using the wrong entity name.