xcode iOS 以编程方式从照片库中选择图片
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10121172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS selecting pictures from photo library programmatically
提问by Ertai
I've got a question. Is there possiblity to select from code a given set of pictures from iOS device photos library? I don't want to use UIImagePickerController because I want to decide for user which pictures I want to refer to in my application.
我有一个问题。是否有可能从代码中选择一组来自 iOS 设备照片库的给定图片?我不想使用 UIImagePickerController 因为我想为用户决定我想在我的应用程序中引用哪些图片。
Didn't find anything viable because all questions are about or related to UIImagePickerController.
没有找到任何可行的方法,因为所有问题都与 UIImagePickerController 有关或相关。
采纳答案by Jakub
Hints for you You can use The Assets Library Framework. Read the documentation: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/AssetsLibraryFramework/_index.html
给您的提示您可以使用资产库框架。阅读文档:http: //developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/AssetsLibraryFramework/_index.html
Or you can use some of the code from: http://www.fiveminutes.eu/accessing-photo-library-using-assets-library-framework-on-iphone/
或者您可以使用以下代码:http: //www.fiveminutes.eu/accessing-photo-library-using-assets-library-framework-on-iphone/