Monday, July 14, 2014

iPhone Camera app tutorial

Below is a brief tutorial on how to launch the camera application from with your iPhone app. Once the image is stored, you can do anything you want with it inside your application.

The first step is adding the following code within your button:

UIImagePickerController *myPicker = [[UIImagePickerController alloc]init];
picker.allowsEditing = YES;
picker.sourceType =  UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
[self presentViewControllerAnimated:picker Completion:NULL];

Once adding this within your button method, the Camera app will launch.

Check out my car app if you get a chance in the iTunes App Store.

No comments:

Post a Comment