UIImagePickerController Subview Alternative [英] UIImagePickerController Subview Alternative

查看:167
本文介绍了UIImagePickerController Subview Alternative的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



UIImagePickerController看起来像是一个明显的选择。
但是,它只能作为模态视图控制器。出于设计原因,在这个应用程序中的图像选择需要是一个UIViewController本身的一部分。



在网上研究和搜索StackOverflow档案后,需要使用 ALAssetsLibrary 从头开始实现我自己的Image Picker,以访问存储在设备上的图像。



这样我的问题是:



已经有一个现有的库或类(或有人愿意共享他/她的现有代码)为此目的?



2)或者,有一种方法来扩展UIImagePickerController为它添加更多的接口元素?

解决方案

对于我自己的一些项目, https://github.com/elc/ELCImagePickerControllerrel =nofollow> ELCImagePickerController ,但这又是为模态演示。



但由于它是开放源代码,您可以进行修改,以允许以您希望的方式嵌入。


I am looking to integrate the ability to select images from the built in library into an iOS app.

UIImagePickerController seems like the obvious choice. However, it only works as a modal view controller. For design reasons, the image selection in this app needs to be part of an UIViewController itself.

After some research on the web and searching the StackOverflow archives, it seems I will need to implement my own Image Picker from scratch using ALAssetsLibraryto access the images stored on the device. However this is quite a task (if done well).

Thus my questions are:

1) Is there already an existing library or class (or would someone be willing to share his/her existing code) for this purpose?

2) Alternatively, is there a way to extend the UIImagePickerController to add more interface elements to it?

解决方案

For some of my own projects, I use the ELCImagePickerController, but this again is meant for modal presentation.

But since it's open source, you may be able to make modifications to allow it to be embedded in the way you want it to be presented.

这篇关于UIImagePickerController Subview Alternative的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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