iPhone: Get camera preview
问题 I'd like to get the image that is being displayed on the UIImagePickerController when user uses the camera. And when I get I want to process the image and display instead of regular camera view. But the problem is when I want to get the camera view, the image is just a black rectangle. Here's my code: UIView *cameraView = [[[[[[imagePicker.view subviews] objectAtIndex:0] subviews] objectAtIndex: 0] subviews] objectAtIndex: 0]; UIGraphicsBeginImageContext( CGSizeMake(320, 427) ); [cameraView