title: How to import video from library in iPhone into my application?
body: <p>I know that this question been asked before, but I'm getting an error while I'm running this code for picking video. </p>
  
  <pre><code>-(void)video
  {
  
  UIImagePickerController *imagePicker =
  [[UIImagePickerController alloc] init];
  imagePicker.delegate = self;
  imagePicker.sourceType = 
  UIImagePickerControllerSourceTypePhotoLibrary;
  imagePicker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeMovie,nil];
  
  [self presentModalViewController:imagePicker animated:YES];
  
  }
  </code></pre>
  
  <p>This code taking me to a window where video should appear. But the window is blank. The message showing is "No Videos you can sync photos and videos onto your iPod.............albums and videos" . I know that this message shows when there is no videos in video library. But I import lot of videos and still showing this error.</p>