【问题标题】:Weird error: wait_fences: failed to receive reply: 10004003奇怪的错误:wait_fences:未能收到回复:10004003
【发布时间】:2010-11-29 23:02:40
【问题描述】:

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

-(void) imagePickerController : (UIImagePickerController *) picker
        didFinishPickingImage : (UIImage *) image
                  editingInfo : (NSDictionary *) editingInfo {

    self.imageView.image = image;
    [picker dismissModalViewControllerAnimated:YES];
    [picker release];
    //[self myNextResponder];
}

这个错误:wait_fences: failed to receive reply: 10004003,出现在这个方法退出之后。 google了一遍,没搞清楚。

【问题讨论】:

  • 我也遇到了同样的问题...运气好吗?太奇怪了!

标签: iphone ios uiimagepickercontroller


【解决方案1】:

您似乎使用了选择器对象作为 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];
}

【讨论】:

    【解决方案2】:

    简单地注释该行

    //[选择器发布];

    试试

    【讨论】:

    • 这会导致内存泄漏。
    【解决方案3】:

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

    【讨论】:

      猜你喜欢
      • 2023-03-22
      • 2011-05-02
      • 2010-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-05
      • 1970-01-01
      • 2011-05-13
      相关资源
      最近更新 更多