UIImagePickerController cameraOverlayView can not be full screen on the iPad?

I solved this question by myself: just reset the size of cameraOverlayView after present UIImagePickerController. Code like this.

Up vote 2 down vote favorite 1 share g+ share fb share tw.

This is my code: UIImagePickerController *picker = UIImagePickerController alloc init; picker. SourceType = UIImagePickerControllerSourceTypeCamera; picker. ShowsCameraControls = NO; picker.

AllowsEditing = NO; picker. Delegate = self; picker. NavigationBarHidden = YES; picker.

ToolbarHidden = YES; picker. WantsFullScreenLayout = YES; UIView *overlay = UIView alloc initWithFrame:CGRectZero; overlay. BackgroundColor = UIColor greenColor; overlay.

Alpha = 0.3; overlay. ClipsToBounds = NO; UIButton *takePictureButton = UIButton alloc initWithFrame:CGRectMake(0, 0, 1024, 1024); takePictureButton addTarget:self action:@selector(takePictureButtonPressed:) forControlEvents:UIControlEventTouchUpInside; takePictureButton. BackgroundColor = UIColor purpleColor; overlay addSubview:takePictureButton; picker.

CameraOverlayView = overlay; takePictureButton release; overlay release; _currentPicker = picker; self presentModalViewController:picker animated:YES; picker release; And it's look like on iPad 2 with iOS 4.3.2: sorry, I can't post image What I want is it can take picture when user tap anywhere on the screen. Forgive my poor English. Iphone ios ipad uiimagepickercontroller fullscreen link|improve this question asked Dec 7 '11 at 10:13Qiz83.

I solved this question by myself: just reset the size of cameraOverlayView after present UIImagePickerController. Code like this: UIImagePickerController *picker = UIImagePickerController alloc init; picker. SourceType = UIImagePickerControllerSourceTypeCamera; picker.

ShowsCameraControls = NO; picker. AllowsEditing = NO; picker. Delegate = self; UIButton *takePictureButton = UIButton alloc initWithFrame:CGRectZero; takePictureButton addTarget:self action:@selector(takePictureButtonPressed:) forControlEvents:UIControlEventTouchUpInside; picker.

CameraOverlayView = takePictureButton; self presentModalViewController:picker animated:YES; takePictureButton. Frame = CGRectMake(0, 0, 1024, 1024); picker release; takePictureButton release; Although it's not elegant, but it work :).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions