Open anilios opened 9 years ago
Check the code and demo project for NBUAssetsGroupViewController
's selectionChangedBlock
then you can your own controller or use a NBUGalleryViewController
which handles zoom.
Sorry, i guess my question was not clear enough. I mean to say before we take picture is there a way that we can have zoom in/out to take pictures.
Aaah. I see. That would be something like a "digital zoom" of the iPhone camera.
The camera preview is a special layer added to NBUCameraView
. You could embed that view inside a UIScrollView
and handle pinch to zoom as usual. Then you would need use the zoomed section rect to crop the output of takePicture:
.
There are several crop methods in UIImage+NBUAdditions
that you could use.
How can i enable zoom in/out feature in NBUImagePicker?