开发者

not able to save data,when i am using mutiple views in a coredata framework

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜