Is it possible to change the displayable frame size of UIImagePickerController? I want to display camera view but not on the entire screen, but say in a 100x100 bounding box
I've sometimes added the ImagePicker's view directly, though I've never experimented with changing its final size, it does "zoom" into the screen, suggesting that it might be possible to show it at different sizes (code lifted directly from one of my projects, so probably not all relevant) -
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
imagePickerController.mediaTypes = [NSArray arrayWithObjects:(NSString *)kUTTypeImage, nil];
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
imagePickerController.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
UIView *controllerView = imagePickerController.view;
controllerView.alpha = 0.0;
controllerView.transform = CGAffineTransformMakeScale(0.5, 0.5);
[[[[UIApplication sharedApplication] delegate] window] addSubview:controllerView];
[UIView animateWithDuration:0.3
delay:0.0
options:UIViewAnimationOptionCurveLinear
animations:^{
controllerView.transform = CGAffineTransformMakeScale(1.0, 1.0);
controllerView.alpha = 1.0;
}
completion:nil
];
[imagePickerController release];
Be interested to see if you get any results with this.