Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
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];

2cIJ2.jpg
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.