Need help on a problem that is consuming my time. This is probably something really simple, and I have to forgive something. Here it is:
I have a UIImagePickerController in which I add CameraOverlayView (just ImageView). The problem is that the bottom panel is cropped by some pixels. When I delete the overlay, it works fine. I even tried changing the overlay frame to fit the screen, and the image is just the size of the camera’s viewing window, but this happens even with small images. Here is the code:
UIImagePickerController * cam = [[UIImagePickerController alloc] init];
cam.sourceType = UIImagePickerControllerSourceTypeCamera; cam.delegate = self;
UIImageView *overlay = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"silhueta.png"]];
overlay.frame = CGRectMake(0, 0, [UIImage imageNamed:@"silhueta.png"].size.width, [UIImage imageNamed:@"silhueta.png"].size.height);
cam.cameraOverlayView = overlay;
[overlay release];
source
share