Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
Hi,


Can we write a code for capturing image through simulator?

if so,

Can anybody please give me the idea?

Thanks
judy
 
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:
Code:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) {
	[imagePicker setSourceType: UIImagePickerControllerSourceTypeCamera];
} else {
	[imagePicker setSourceType: UIImagePickerControllerSourceTypePhotoLibrary];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.