tags:

views:

176

answers:

1

This question or similar has been asked before but from the responses I saw none answered the questions sufficiently. I'll describe what I'm trying to do and I'm basically looking to see if it is possible, and if so, a suggested approach would be much-appreciated.

I'd like to take a picture from the iPhone that is triggered with a gesture (e.g. a tap or swipe) and not a button press (via takePicture?). I'm aware of the ability to capture the contents of the screen and save that, but the resolution is much lower than that acquired through the actual camera. Following the taking of a picture I don't want any views to appear (like the image picker).

So in summery, a user would experience the following sequence of events: They are presented with a live camera view, they swipe their finger (a picture is taken) and the screen immediately returns to the live view. I've been able to accomplish this using the UIImagePickerController and UIGetScreenImage, but like I specified earlier, I'd like to acquire an image of the highest resolution possible.

Thanks!

+3  A: 

If you target for the AppStore, no you can't do that. Anything lower level than -[UIImagePickerController takePicture] depends on the private PhotoLibrary.framework, or even worse, IOKit.framework, so the best bet would be -takePicture.


If you want to use undocumented methods, try the AVCapture class in Celestial.framework (http://ericasadun.com/iPhoneDocs300/_a_v_capture_8h-source.html).

KennyTM
I'm not targeting the AppStore, so I'll take a look at `AVCapture`. Thanks.
Dave
Do you know of any code examples that make use of the AVCapture class? For example, I think the `capturePhoto` method might be useful, but due to lack of documentation I wouldn't know how to use it. Thanks.
Dave
I don't think there's any of these on the web yet. Sorry.
KennyTM