After testing my app on iOS 4.3, I noticed that there is an additional change in the camera overlay of my UIImagePickerController which has greatly increased content. Everything before the iOS 4.3 appears properly.
What do I do here
imagePicker = [[UIImagePickerController alloc] init]; ImagePicker.delegate = self; ImagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; Camera Overlay = [[UIView Alloc] initWithFrame: CGRectMake (0, 0, 200, 200)]; Camera overlay. Background color = [UIColor clearColor]; CameraOverlay.userInteractionEnabled = NO; // Add sub-view to camera overlay image picture camera overlayview = pause button; Any thoughts that I have to get rid of additional changes?
got the right answer. Camera overlays in iOS 4.3 need to be larger in the form of screen. So my 200x200 camera overlay increased.
If I change this line:
camera overlay = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 200, 200)]; to
camera overlay = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 320, 480)]; it works :).
Comments
Post a Comment