title: NSInternalInconsistencyException, how to resolve this exception?
body: <pre><code>UIImagePickerController *controller=[[UIImagePickerController alloc] init];
  [controller setSourceType:UIImagePickerControllerSourceTypeCamera];
  [controller setEditing:YES];
  [controller setDelegate:self];    
  
  [self presentModalViewController:controller animated:YES];
  [controller release];
  </code></pre>
  
  <p>Hi, I am new in iPhone technology, I am using this code to capture the image from the camera, but when I click on the use button I get the sigmabt error.</p>
  
  <p>I am also using this delegate mathod to get the image:</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
      imagePhoto.image=[info objectForKey:UIImagePickerControllerOriginalImage];
      [picker dismissModalViewControllerAnimated:YES];    
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>