UIImagePickerController Subview Alternative

浪尽此生 提交于 2019-12-11 06:59:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8685160/uiimagepickercontroller-subview-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!