如何使用拍摄的照片?

发布于 2024-09-27 01:19:07 字数 757 浏览 0 评论 0原文

我的应用程序中的相机可以正常工作,但是在捕获图片并选择使用后,应用程序崩溃了。

如何连接此使用按钮并将其设置为捕获的图像创建的 UIImageView?

编辑


相机可用并准备就绪 使用两阶段旋转动画。

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'

谢谢

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 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱人如己 2024-10-04 01:19:07

看看苹果的 PhotoPicker 示例项目。从描述来看:

所选图像或相机照片是
显示在 UIImageView 中。

Take a look at Apple's PhotoPicker sample project. From the description:

The chosen image or camera photo is
displayed in a UIImageView.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文