UIManagedDocument CompletionHandler not executed in iOS 5.1 simulator but works on device and iOS 6.0 simulator

不羁的心 提交于 2019-11-28 09:35:05

问题


I hope someone has some thoughts on this one...

I have a project that uses UIManagedDocument. The first thing I do in the appDelegate is open the document. Everything has been going fine until suddenly (nothing was changed in the code) the -openWithCompletionHandler: stopped executing the handler code. The app works just fine on the device, but not in the simulator. As a lark I tried running the app under the iOS 5.0 and 6.0 simulators and everything works as expected!?!

I have reinstalled xcode 4.5 and the behavior stays the same. I deinstalled by trashing the xcode app in the applications folder. I also deleted all the iPhone simulator files in the ~/Library/Application Support/iPhone Simulator/ directory.

Anyone have any thoughts?

来源:https://stackoverflow.com/questions/12577672/uimanageddocument-completionhandler-not-executed-in-ios-5-1-simulator-but-works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!