【发布时间】:2011-07-14 04:02:19
【问题描述】:
情况如下:
拍照后从
[UIImagePickerController takePicture];
以下委托函数:
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
将被调用。
里面的代码是
NSLog(@"Photo taken");
UIImage *newImage = [self resizeImage:[info objectForKey:UIImagePickerControllerOriginalImage]];
NSLog(@"Width: %d, Height: %d ",(int)newImage.size.width, (int)newImage.size.height);
//[imagePickerController dismissModalViewControllerAnimated:YES];
ProcessCompleteView *pcv = [[ProcessCompleteView alloc] initWithNibName:@"ProcessCompleteView" bundle:nil];
[imagePickerController presentModalViewController:pcv animated:YES];
[pcv release];
我调用了另一个视图来显示某事,当我使用 dismissModalViewController 从 pcv 返回时,应该显示相机实时捕获的区域变成白色。但是,当我关闭 UIImagePickerController 并再次呈现它时,相机工作正常!
谁能帮我解决这个奇怪的问题??
谢谢。
【问题讨论】:
标签: iphone uiimagepickercontroller