title: Use the UIImagePickerController on a iphone simulator
body: <p>I have the method, that take photos from gallery or from the camera</p>
  
  <pre><code>-(IBAction) getPhoto:(id) sender {
    UIImagePickerController * picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
  
    if((UIButton *) sender == choosePhotoBtn) {
          picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    } else {
          picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    }
  
    [self presentModalViewController:picker animated:YES];
  }
  </code></pre>
  
  <p>But when i run it on the simulator, code doesnt work. And it doesnt work in <code>picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum</code> and <code>picker.sourceType = UIImagePickerControllerSourceTypeCamera</code></p>
  
  <p>Is the problem in the simulator or in the code?</p>