如何从库中选择图片后启用预览? [英] how to enable preview after selecting picture from library?

查看:145
本文介绍了如何从库中选择图片后启用预览?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个应用程序,其中包括从相机或库中挑选图片。一旦选择了图片,我想显示图片的预览。默认情况下,选择相机时会发生。单击照片后,它会显示用户选择或重新拍摄。但是我希望在从照片库中选择照片时也可以这样做。可以这样做吗?

I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done??

推荐答案

好的谢谢你的回复。这是我做的:
子类UIImagePickerController。在选择图像时,我正在推送另一个与预览屏幕类似的视图控制器。这与facebook app类似,所以我认为它会得到苹果的批准。

Ok thanks for the response. Here is what I did: Subclass UIImagePickerController . Upon picking an image, I am pushing another viewcontroller which is similiar to preview screen. This is similiar to facebook app and so I think it will get approved by apple.

这篇关于如何从库中选择图片后启用预览?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆