i have started a new navigation based application with core data option checked ,so when i try to have m开发者_高级运维ultiple views and then save data ,the data is not saving and i getting error as "Unresolved error (null), (null)".
so please help me out.
Regards Ranjit
You should not write to Core Data from different views.
Make sure you do the saving in viewWillDisappear
, so the new view that will appear can save without conflict.
That being said, your error seems to indicate that there is another problem. "Unresolved error" is your own string in the code, and (null), (null) indicates that the NSError
object is indeed null
. That means that the writing to the database has actually worked without error, and the problem resides in your program logic or in the code checking and displaying the changes.
Cheers,
Sascha
精彩评论