As hijinks said with the simulator use the photo library in the camera picker. Then some code like the following to automatically use the camera when the app is on the iphone (code could be made shorter - tidy up as need be):
Code:
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
picker.allowsImageEditing = NO;
}
else if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.delegate = self;
picker.allowsImageEditing = NO;
}
else {
picker = nil;
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"No Camera Found"
message:@"You need an iPhone with a camera to use this application."
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Ok", nil];
[alertView show];
[alertView release];
}