title: How can i get the name of image picked through photo library in iphone?
body: <p>I am picking an image from photo library in iphone application. How will i retrieve the actual image name.</p>
  
  <p>in .h class</p>
  
  <pre><code>UIImageView * imageView;
  
  UIButton * choosePhotoBtn;
  </code></pre>
  
  <p>in .m class</p>
  
  <pre><code>-(IBAction) getPhoto:(id) sender 
  {
      UIImagePickerController * picker = [[UIImagePickerController alloc] init];
      picker.delegate = self;
      if((UIButton *) sender == choosePhotoBtn)
      {
          picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
      }
      else 
      { 
          picker.sourceType = UIImagePickerControllerSourceTypeCamera;
      }
      [self presentModalViewController:picker animated:YES];
  }
  
  - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 
  {
      [picker dismissModalViewControllerAnimated:YES];
      imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
  }
  </code></pre>
  
  <p>How will i get the actual name of image ?</p>
  
  <p>I m new in iphone. Please help me.</p>
  
  <p>Thanks in advance.</p>