---
title: "Enabling Camera functionality using UIImagePickerController class"  
description: "Enabling Camera functionality using UIImagePickerController class"  
author: "Anonymous User"  
published: 2015-11-05  
updated: 2015-11-06  
canonical: https://www.mindstick.com/forum/33574/enabling-camera-functionality-using-uiimagepickercontroller-class  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Enabling Camera functionality using UIImagePickerController class

I was creating an app and I want to implement [functionality](https://www.mindstick.com/blog/136/using-watermark-functionality-in-textbox-by-jquery) of [camera](https://www.mindstick.com/news/4124/apple-patents-security-cameras-with-bodyprint-tech) in our app so I am using UIImagePickerController to pick [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) using camera and it executes successfully.\
But after clicking image I [am unable to browse](https://answers.mindstick.com/qa/94693/i-am-unable-to-browse-through-chrome-in-my-laptop-what-are-the-solutions) images.\
I am new in iPhone so please help me.

## Replies

### Reply by Tarun Kumar

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];}
```


---

Original Source: https://www.mindstick.com/forum/33574/enabling-camera-functionality-using-uiimagepickercontroller-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
