title: Make iphone camera as a magnifying lens
body: <p>I have an application called magnifying lens .Here I need to start the camera at the time of appliaction starts itself.How can I possible to start the camera while starting the app?</p>
  
  <p>I have the camera active code here</p>
  
  <pre><code>    // Create image picker controller
    UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
  
    // Set source to the camera
      imagePicker.sourceType =  UIImagePickerControllerSourceTypeCamera;
  
    // Delegate is self
      imagePicker.delegate = self;
  
    // Allow editing of image ?
      imagePicker.allowsImageEditing = NO;
  
    // Show image picker
      [self presentModalViewController:imagePicker animated:YES]; 
  </code></pre>
  
  <p>But I don't know where to place this code for start the camera at the time when the application starts.I put the code in the viewdidLoad method .But it didn't give me the desired result.</p>
  
  <p>I am very new to this if you can suggest me an idea it will be very useful to me.</p>
  
  <p>Thanks in advance
  Priya</p>