wait_fences:没有收到回复:10004003用于IPHONE相机某个时候有时它不工作

时间:2010-07-14 02:04:33

标签: iphone

我使用过2个textfeild,我正在使用这个()来拍摄照片

- (IBAction)shoot:(id)sender
{

    NSLog(@" START SHOOTING");
    UIImagePickerController * picker1 = [[UIImagePickerController alloc] init];
    picker1.delegate = self;

    if((UIButton *) sender == choosePhotoBtn) {
        picker1.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    } else {
        picker1.sourceType = UIImagePickerControllerSourceTypeCamera;
    }

    [self presentModalViewController:picker1 animated:YES];
}
- (void)imagePickerController:(UIImagePickerController *)picker1 didFinishPickingMediaWithInfo:(NSDictionary *)info {


    NSLog(@" STOP SHOOTING");
    [picker1 dismissModalViewControllerAnimated:YES];
    imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];

}

我收到此错误wait_fences:拍摄时未能收到回复:10004003 有时它的工作时间没有

2 个答案:

答案 0 :(得分:0)

得到它只是重启设备

答案 1 :(得分:0)

每次输入“alloc”时,您都要对相应的“发布”或“自动发布”负责。

最简单的解决方法是:

UIImagePickerController * picker1 = [[[UIImagePickerController alloc] init] autorelease];

在编写应用程序之前,尝试阅读有关iphone内存管理的内容。它会让你头疼。