hello,
i wanna show a screenshot taken by uipickercontroller, but the problem is that the screen not show on fullscreen!
Code:
- (void)imagePickerController:(UIImagePickerController *)aPicker didFinishPickingMediaWithInfo:(NSDictionary *)info {
UIImage *screenshot = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
UIImage *originalImage = screenshot;
CGSize destinationSize = CGSizeMake(480,320);
UIGraphicsBeginImageContext(destinationSize);
[originalImage drawInRect:CGRectMake(0,0,destinationSize.width,destinationSize.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageView *viewThumbnail = [[UIImageView alloc] initWithImage:newImage];
viewThumbnail.transform = CGAffineTransformMakeRotation(M_PI / 2);
[aPicker.cameraOverlayView addSubview:viewThumbnail];
}
help!