imagePickerController didFinishPickingImage 没有被调用

发布于 2024-09-04 19:59:53 字数 338 浏览 1 评论 0 原文

我正在尝试保存从 UIImagePickerController 获取的图像,但我不能。

这是我试图用来保存图像的代码:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil); }

该函数根本没有被调用。

有什么想法吗?

I am trying to save an image I take from a UIImagePickerController but I am not, well, being able to.

This is the code I am trying to use to save the image:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil); }

That function is simply not being called.

Any idea?

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

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

发布评论

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

评论(1

溺深海 2024-09-11 19:59:53

您是否分配了 delegate 属性“nofollow noreferrer”>UIImagePickerController 实例?如果您想收到通知(因此,如果您希望调用您的方法),则需要它。

Have you assigned the delegate property of the UIImagePickerController instance ? It is needed if you want to be notified (thus, if you want your method to be called).

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