Uiimage as photolibrary file or camera
<p>I want to select a image from Photo library or camera and have to save it into my photo album(If its already there i want to put 1 more copy)</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];

}

-(IBAction) savePhoto:(id) sender
{
    UIImage *myImage =UIImagePickerControllerSourceTypePhotoLibrary||UIImagePickerControllerSourceTypeCamera
    UIImageWriteToSavedPhotosAlbum(myImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
    printf("Hello world");

}
</code></pre>

<p>Here my savePhoto function os not working</p>
