title: Application crashing in the imagePickerController:didFinishPickingMediaWithInfo method inside UIImagePickerController
body: <p>I am a beginner in iOS development, I tried to make an application to select an image from the UIImagePickerController which is displayed inside a UIImageView object. The problem I am facing is inside this method</p>
  
  <pre><code>-(void)imagePickerController:(UIImagePickerController*)Picker didFinishPickingMediaWithInfo:(NSDictionary*)info
  {
      NSLog(@"Inside dismiss modal view delegate 2");
      UIImage * image = [info objectForKey:UIImagePickerControllerOriginalImage];
      selectedImage.image = [image retain];
      NSLog(@"Inside the did pickerController method");
  }
  </code></pre>
  
  <p>When I select an image from the UIImagePickerController, the image gets selected but the application crashes. I tried debugging, and the first NSLog statement gets displayed on the console, but the 2nd one does not get displayed. </p>
  
  <p>I am trying to load an image from the Photos library inside the simulator. I am using XCode 3.2.5 and the simulator is 4.2. This might men the error is there in between the two NSLog statements. But, I have tried my best to find out the error, but without any success. Can you please help me out. </p>