奇怪的错误:wait_fences:未能收到回复:10004003
我知道还有其他问题可以解决此错误,但这些答案对我没有任何帮助。我想知道是否有人知道确切的原因,如果没有人知道,这里是代码:
-(void) imagePickerController : (UIImagePickerController *) picker
didFinishPickingImage : (UIImage *) image
editingInfo : (NSDictionary *) editingInfo {
self.imageView.image = image;
[picker dismissModalViewControllerAnimated:YES];
[picker release];
//[self myNextResponder];
}
此错误:wait_fences:无法接收回复:10004003,在此方法退出后立即出现。我用谷歌搜索了所有内容,但无法弄清楚。
I know that there are other questions that deal with this error, but those answers don't help me any. I was wondering if anyone knew the exact cause, and if no one does, here is the code:
-(void) imagePickerController : (UIImagePickerController *) picker
didFinishPickingImage : (UIImage *) image
editingInfo : (NSDictionary *) editingInfo {
self.imageView.image = image;
[picker dismissModalViewControllerAnimated:YES];
[picker release];
//[self myNextResponder];
}
This error: wait_fences: failed to receive reply: 10004003, appears right after this method exits. I have googled all over, and cannot figure it out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看来您使用了选取器对象作为present/dismissModalViewController 的调用者。该文档建议使用“父”视图控制器。
对于“父”,我使用 self.navigationController (因为它不会去任何地方)
我的选择器委托的取消方法的实现如下所示......
It appears that you used the picker object as the caller of present/dismissModalViewController. The documentation recommends using the "parent" view controller.
For the "parent" I used self.navigationController (since it won't be going anywhere)
The implementation of my picker delegate's cancel method looks like this...
只需注释行
//[picker release];
并尝试
Simply comment the line
//[picker release];
and try
确保屏幕上没有显示任何键盘。
如果有,请使用 [yourTextFieldOrTextView resignFirstResponder]。
谢谢
Make sure you don't have any keyboards shown up on the screen.
Use [yourTextFieldOrTextView resignFirstResponder] if you have.
Thanks