PICK IMAGE FROM DEVICE MEMORY USING UIIMAGEPICKERCONTROLLER

John Brown

Total Post:6

Points:42
Posted by  John Brown
 761  View(s)
Ratings:
Rate this:

I was creating an app and I want to implement functionality of camera in our app so I  using UIImagePickerController to pick image using camera and it executes successfully.
But after clicking image I am unable to browse images from our device memory,
I am new in iPhone so please help me.

  1. Tarun Kumar

    Post:214

    Points:1642
    Re: Pick image from device memory using UIImagePickerController

    Your problem is not so big so don't worry, here I am giving you the code which helps you to pick image from library:

    create an action method browseImage: and use this code

    - (IBAction)browseImage:(id)sender { 
        UIImagePickerController *picker = [[UIImagePickerController alloc]init];
        picker.delegate = self;
        picker.allowsEditing = YES;
        picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        [self presentViewController:picker animated:YES completion:NULL];
    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!