I am trying to create a single function that will call up the camera to fullscreen.
This code hang the program
Can anyone help in accessing the problem with this code ?
This code hang the program
Code:
-(void)setCameraFullScreen
{
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.showsCameraControls = NO;
picker.navigationBarHidden = YES;
picker.toolbarHidden = YES;
picker.wantsFullScreenLayout = YES;
picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, CAMERA_SCALAR, CAMERA_SCALAR);
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:picker animated:YES]; //Show the Picker
[picker release];
}
Can anyone help in accessing the problem with this code ?