简体   繁体   English

在我的 iOS 应用程序中访问设备的所有照片

[英]Access all photos of device in my iOS App

I want to take all photos and videos from device Photos app and show it in my app.我想从设备照片应用程序中拍摄所有照片和视频并将其显示在我的应用程序中。 First of all is Apple allowing for the same or not?首先,苹果是否允许相同? If yes how i can i do that, is Photoframework useful for that?如果是,我该怎么做,Photoframework 对此有用吗?

The fastest to implement and easiest way to use if you just want to pick some photos from the user's phone is the UIImagePickerController .如果您只想从用户的手机中挑选一些照片,最快的实现和最简单的使用方法是UIImagePickerController

However, if you really want to show the assets or the photos of a device into your app and not just to pick some assets, you will need to learn and use the Photos Framework .但是,如果您真的想将设备的资产或照片显示到您的应用程序中,而不仅仅是挑选一些资产,您将需要学习和使用照片框架 You'll know how to fetch PHAssets from the device and use them into your app.您将知道如何从设备中获取PHAssets并将它们用于您的应用程序。

There are lots of tutorials around the web, like so: http://nshipster.com/phimagemanager/网上有很多教程,像这样: http : //nshipster.com/phimagemanager/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS - 从设备中获取所有照片并将其保存到应用程序 - iOS - Fetch all photos from device and save them to app ios7应用程序不要求访问照片的权限 - ios7 app not asking for permission to access photos 使用NSFileManager的copyItemAtURL将图像从iOS设备的“照片”应用复制到我自己的应用的目录中 - copy images from iOS device's Photos app to my own app's directory using NSFileManager's copyItemAtURL 如何在iOS上从应用程序的文档文件夹中的一个相册中复制所有照片? - How to copy ALL photos from one photo album my app's document folder on iOS? 如何从 web 应用程序(任何操作系统)访问设备照片 - How to access the device photos from web app (Any OS) iOS:我的iPhone应用程序可以访问iPhone设备/设备的信任存储区的受信任CA证书吗? - iOS: Can my iPhone app access trusted CA certificates of the iPhone device / device's trust store? 如果我的 iOS 应用与使用 Core Bluetooth 的设备配对,其他应用是否可以访问该设备? - If my iOS app pairs with a device using Core Bluetooth, will other apps have access to the device? 应用无法访问您的照片或视频 iOS 9 - App does not have access to your photos or videos iOS 9 重启 ” <App> 想在iOS上访问你的照片“对话框 - Reset “<App> would like to access your photos” dialog on iOS iOS集成了照片应用 - iOS integrate photos app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM