title: Taking a photo and saving it to the Camera Roll
body: <p>I'm having a problem where I just want a simple solution to take a picture and then save it in my app. However so far all I can do is take the photo have it load in a <code>UIImageView</code>, however it does not save in the Camera Roll. </p>
  
  <pre><code>- (IBAction)takePhoto:(UIButton *)sender 
  {
      UIImagePickerController *picker = [[UIImagePickerController alloc] init];
      picker.delegate = self;
      picker.allowsEditing = YES;
      picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  
      [self presentViewController:picker animated:YES completion:NULL];
  }  
  
  - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 
  {
      UIImage *chosenImage = info[UIImagePickerControllerEditedImage];
      self.imageView.image = chosenImage;
  
      [picker dismissViewControllerAnimated:YES completion:NULL];
  }
  
  - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker 
  {
      [picker dismissViewControllerAnimated:YES completion:NULL];
  }
  </code></pre>
  
  <p>Any help regarding this would be greatly appreciated. Believe me, I really need it.</p>