aisha
aisha

Reputation: 1

UIImagePickerController 3.0 takePicture function

How can i use it takePicture method to programatically capturing image.I want to take picture after 5 sec or want to set a timer on camera.Is it possible ti take picture without press take button.

Upvotes: 0

Views: 1369

Answers (2)

David Maymudes
David Maymudes

Reputation: 5654

As of OS 3.1, you can definitely do this, using the takePicture method. You can hide the normal camera controls with the showsCameraControls property. So you can do exactly what you want, just set a timer or use some other UI, and then call takePicture in your timer callback. The one confusing thing I've seen is that if you call it "too soon" when the image picker isn't quite ready it appears to fail silently.

Upvotes: 0

Rambo
Rambo

Reputation: 591

There is a good tutorial on this here.

http://www.zimbio.com/iPhone/articles/1109/Picking+Images+iPhone+SDK+UIImagePickerController

Upvotes: 1

Related Questions