Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<ol> <li><p>the AV Foundation allows you to talk to the camera, to configure it in various ways, and to receive a live feed from it. So it's good for taking new pictures or movies, but not for selecting them from the camera roll or for editing them. You'd likely want to use the AV Foundation to replace the image capture duties that UIImagePicker supplies. Probably you'll want to use a UIImagePicker with <code>allowsEditing</code> set to <code>NO</code> so as to be able to provide your own entirely separate editing interface.</p></li> <li><p>no, it's a different sort of task.</p></li> <li><p>I'm unaware of any tutorials on this sort of thing, but the docs are pretty good. I've posted the whole stuff for capturing a live feed from the camera in answers <a href="https://stackoverflow.com/questions/5174213/optimizing-iphone-photo-taking-speed-uiimagepickercontroller/5175048#5175048">like this one</a>, not sure if that's a more helpful way to see how some of the AV Foundation classes can be chained together?</p></li> </ol> <p>What you'll probably end up doing in order to edit an image is starting with a UIImage, creating a CoreGraphics bitmap context (which is something you can draw to), doing some sort of compositing to that and then converting the result into an image and saving it back out to the camera roll.</p> <p><code>UIBezierPath</code> is a wrapper over the Core Graphics stuff, but will probably do what you want. <a href="http://developer.apple.com/library/ios/documentation/uikit/reference/UIBezierPath_class/Reference/Reference.html#//apple_ref/occ/instm/UIBezierPath/addClip" rel="nofollow noreferrer"><code>addClip</code></a> can set a defined path to be the new clipping path on the current context, or you can use the <code>CGPath</code> property if you need to go a bit further afield than UIKit's idea of a current context.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload