Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing the front facing camera. iPhone/iPod 4

Hey I was wondering how I can access the front facing camera. Maybe there's some guide for it? But I don't want all buttons etc. I just want to access the from facing camera, I don't ant the button to take a photo or anything like that.

like image 499
Tapy Avatar asked Jan 18 '11 22:01

Tapy


2 Answers

You can access the front facing camera like:

picker.cameraDevice = UIImagePickerControllerCameraDeviceFront;

Check out the UIImagePickerController Class Reference

like image 92
WrightsCS Avatar answered Oct 04 '22 03:10

WrightsCS


Just set the cameraDevice property of UIImagePickerController to UIImagePickerControllerCameraDeviceFront. But you should check if the device is available.

like image 21
Henrik P. Hessel Avatar answered Oct 04 '22 02:10

Henrik P. Hessel