title: Customize the camera view in iphone
body: <p>Thanks in advance.
  I want to create a view with customizing camera view.Like this<img src="https://i.stack.imgur.com/RurId.png" alt="enter image description here"></p>
  
  <p>To do this in one view controller I have created the instance of another view controller and in the second viewcontroller i am creating UIImagepickerController like this:</p>
  
  <pre><code>-(void)showCamera
  {
  camController = [[UIImagePickerController alloc]init];
      if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
      {
          camController.sourceType = UIImagePickerControllerSourceTypeCamera;
      }
      camController.showsCameraControls = NO;
      camController.navigationBarHidden = YES;
      camController.toolbarHidden = YES;
      camController.wantsFullScreenLayout = NO;
      camController.cameraViewTransform = CGAffineTransformScale(camController.cameraViewTransform, 2.0f, 2.0f);
  // Edited
  //[self presentModalViewController:camController animated:YES];
  
  }
  </code></pre>
  
  <p>and in the first view controller :</p>
  
  <pre><code>cam = [[CamController alloc]init];
  cam.view.frame = CGRectMake(5, 50, 310, 300) ;
  [cam showCamera];
  [self.view addSubview:cam.view];
  //Edited
   [self.cam presentModalViewController:self.cam.camController animated:NO];
   [self performSelector:@selector(setFrame) withObject:self afterDelay:1.0];
   [self.cam.camController.view setFrame:CGRectMake(10, 50, 300, 250)];
  </code></pre>
  
  <p>This is not working actually. Is it correct process. Can any one help me . </p>