title: IPhone UIView and UIImagePickerController
body: <p>I am new to Iphone development and got a situation where I need to have a ViewController named PhotoSelectorViewController which will ask for one to pick images from phone library. I know UIImagePickerController is there but I don't know how to use it correctly.</p>
  
  <p>I tried following:</p>
  
  <p>First Method:</p>
  
  <ol>
  <li>I created a ViewController named PhotoSelectorViewController with xib file.</li>
  <li>I remove View from xib file and added UIImagePickerController to the list.</li>
  <li>I don't know what to do next to start the picker when one will create the instance of this class calling some init function in this ViewController.</li>
  </ol>
  
  <p>Second Method:</p>
  
  <ol>
  <li>I created new project and added a view controller named PhotoSelectorViewController where there is a Window and a UIView only. </li>
  <li>On UIView viewDidLoad function I am creating instance of UIImagePickerController and adding it to the view.</li>
  <li>I don't know how this picker will be started when one will create instance of this view controller?</li>
  </ol>
  
  <p>Please help if you can.</p>