View Full Version : About image capturing
iphonejudy
Oct 14, 2008, 02:59 AM
Hi,
Can we write a code for capturing image through simulator?
if so,
Can anybody please give me the idea?
Thanks
judy
jasonslater
Oct 14, 2008, 10:47 AM
The camera isn't available in the simulator.
What I do is determine if the camera is available and then display either the Camera or the Photo Library:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) {
[imagePicker setSourceType: UIImagePickerControllerSourceTypeCamera];
} else {
[imagePicker setSourceType: UIImagePickerControllerSourceTypePhotoLibrary];
}
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.