Posts

Showing posts from February 12, 2017

Image Picker

Image
Here we are starting ‘ImagePicker’ for picked image from gallery and camera. See first video for learning easily.  Step 1-First start X-code and open ’Single View Application’ show bellow picture. Step 2-Now give product name ‘ImagePickerDemo’ or as you wish. Step 3-Now go into the ‘Main.storyboard’ and create platform bellow type. Here ‘Pick From Gallery’ and ‘Pick From Camera’ both are buttons. Step 4- Now go into ‘ViewController.h’ and give delegate. ‘ UIImagePickerControllerDelegate ’ and ‘ UINavigationControllerDelegate ’. Step 5-Now give ‘IBOutlet’ of image view and buttons and also give ‘Action’ of buttons and write bellow type code. #import <UIKit/UIKit.h> @interface ViewController : UIViewController < UIImagePickerControllerDelegate , UINavigationControllerDelegate > {     UIImagePickerController *imagePickerCtrl;     UIPopoverController ...