奇怪的错误:wait_fences:未能收到回复:10004003

发布于 2024-08-05 11:02:38 字数 488 浏览 2 评论 0原文

我知道还有其他问题可以解决此错误,但这些答案对我没有任何帮助。我想知道是否有人知道确切的原因,如果没有人知道,这里是代码:

-(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

没企图 2024-08-12 11:02:38

看来您使用了选取器对象作为present/dismissModalViewController 的调用者。该文档建议使用“父”视图控制器。

对于“父”,我使用 self.navigationController (因为它不会去任何地方)

我的选择器委托的取消方法的实现如下所示......

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    // make sure the picker doesn't try to access the soon to die delegate
    picker.delegate = nil;

    [self.navigationController dismissModalViewControllerAnimated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}

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...

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    // make sure the picker doesn't try to access the soon to die delegate
    picker.delegate = nil;

    [self.navigationController dismissModalViewControllerAnimated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}
那伤。 2024-08-12 11:02:38

只需注释行

//[picker release];

并尝试

Simply comment the line

//[picker release];

and try

扭转时空 2024-08-12 11:02:38

确保屏幕上没有显示任何键盘。
如果有,请使用 [yourTextFieldOrTextView resignFirstResponder]。
谢谢

Make sure you don't have any keyboards shown up on the screen.
Use [yourTextFieldOrTextView resignFirstResponder] if you have.
Thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文