Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-19-2010, 02:48 PM   #5 (permalink)
dr_carmster
Registered Member
 
Join Date: Feb 2010
Location: Rochester, NY
Posts: 11
dr_carmster is on a distinguished road
Default

Quote:
Originally Posted by sharhelia View Post
Thank you so much for reply, it was a great help
I am trying to do something similar, but still can't get the takePicture method to work correctly.

Have you had any luck?

I'm trying to capture an image automatically without pushing the capture button. To do this, I create an overlay and then call takePicture:

Code:
	imgPicker = [[UIImagePickerController alloc] init]; 
	imgPicker.delegate = self; 
	imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera; 
	imgPicker.allowsEditing = NO; 
	imgPicker.showsCameraControls = NO;
	imgPicker.wantsFullScreenLayout = NO;
	
	imgPicker.view = cameraOverlayView;
	

	[self presentModalViewController:imgPicker animated:YES]; 
	
	[imgPicker takePicture];
	printf("should have taken picture");
	[[imgPicker parentViewController] dismissModalViewControllerAnimated:YES];
The problem is that for some reason I can't get access to the picture that should be captured. I have the following method in my code but it never seems to get called:

Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
	printf("Did finish picking with info");
	
	[picker release];
}
Any suggestions?
dr_carmster is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,490
Threads: 94,041
Posts: 402,630
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Frankeinkoo
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.