大家好,我在尝试模态显示相机时遇到了崩溃。这是我的代码:
if (!imagePicker) { imagePicker = [[UIImagePickerController alloc]init]; }
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[imagePicker setDelegate:self];
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
我已经在这里进行了所有搜索,但通常只有在您拍照后才会发生崩溃
imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)info
我没有得到任何详细信息,只是应用程序关闭,我看到线程已暂停。
知道这里有什么问题。有关信息,我正在 ipod touch 3G 和 iPhone 3GS 中进行测试