How to use captured photo?
I have the camera working in my app, but after the picture is captured and I select use, the app crashes.
How can I connect this use 开发者_StackOverflow中文版button and make it set a UIImageView I have created to the captured image?
EDIT
Camera is available and ready Using two-stage rotation animation.
To use the smoother single-stage animation, this application must remove two-stage method
implementations.
Using two-stage rotation animation is not supported when rotating more than one view
controller or view controllers not the window delegate
*** ERROR: FigCreateCGImageFromJPEG returned -12905. Input (null) was 658522 bytes.
Received memory warning. Level=1
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'+[NSInvocation invocationWithMethodSignature:]: method signature argument cannot be nil'
Thanks
Take a look at Apple's PhotoPicker sample project. From the description:
The chosen image or camera photo is displayed in a UIImageView.
精彩评论