When should I use UIImagePickerControllerSourceTypePhotoLibrary instead of UIImagePickerControllerSourceTypeSavedPhotosAlbum?

前端 未结 1 1060
心在旅途
心在旅途 2020-12-28 12:48

I have an application that allows the user to pick a photo from their device. To do this, I\'m using the UIImagePickerController, but the problem is that I\'m unsure whethe

相关标签:
1条回答
  • 2020-12-28 13:22

    UIImagePickerControllerSourceTypePhotoLibrary references the entire photo library, letting the user choose which album. UIImagePickerControllerSourceTypeSavedPhotosAlbum goes straight to the camera roll album without giving the user a choice as to which album to choose from. They're similar, but different. You can get to the camera roll from PhotoLibrary; you can access only the camera roll from UIImagePickerControllerSourceTypeSavedPhotosAlbum.

    Reference.

    0 讨论(0)
提交回复
热议问题