You can access the iPhone image library like this and select the image from there
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
{
if (picker == nil) {
picker = [[UIImagePickerController alloc] init];
picker.allowsEditing = NO;
}
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.delegate = self;
// Make camera view full screen:
picker.wantsFullScreenLayout = YES;
[self.navigationController presentModalViewController:picker animated:YES];
}
And then implement the delegate method to get the image...
- (void)imagePickerController:(UIImagePickerController *)picker1 didFinishPickingMediaWithInfo:(NSDictionary *)info
{
cameraClickedImage=[info valueForKey:UIImagePickerControllerOriginalImage];
UIImage *thumbImage = [cameraClickedImage imageByScalingAndCroppingForSize:CGSizeMake(320, 480)];
clickedImageView.image =thumbImage;
[picker1 dismissModalViewControllerAnimated:YES];
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker1 {
NSLog(@"Cap1");
[picker1 dismissModalViewControllerAnimated:YES];
[self.navigationController popViewControllerAnimated:NO];
}
Hope this will help you..........
Cheers......