I have an app in which I am trying to add a frame to the camera picker controller. Listed below is my code, but it looks like this on the iPad, camera not filling up the screen, and frame image not quite right.
Code:
self.imagePickerController =[[UIImagePickerController alloc] init];
[self.imagePickerController setSourceType:UIImagePickerControllerSourceTypeCamera];[self.imagePickerController setDelegate:self];
[self.imagePickerController setCameraDevice:UIImagePickerControllerCameraDeviceRear];
[self.imagePickerController setShowsCameraControls:NO];
UIView*myOverlay =[[UIView alloc] initWithFrame:self.view.bounds];
UIImage*overlayImg =[UIImage imageNamed:@"overlay.png"];
UIImageView*overlayBg =[[UIImageView alloc] initWithImage:overlayImg];
[myOverlay addSubview:overlayBg];
[self.imagePickerController.view addSubview:myOverlay];
[self.navigationController presentViewController:self.imagePickerController animated:YES completion:nil];
