1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

相机胶卷照片为空时不显示相册 #200

Closed ghost closed 8 years ago

ghost commented 8 years ago

1.相机胶卷没有照片时,显示没有照片,但其实其它相册是有照片的。

1and2papa commented 8 years ago

其他相冊指的是甚麼相冊?以我所知在 iPhone 建立相冊的相均來自相機膠卷 (Camera Roll) 的。

ghost commented 8 years ago

比如在mac上新建的相册,同步到iphone上的: img_9414

1and2papa commented 8 years ago

Hi @cooerson, Photos framework 預設不包括經由 iTunes Sync 到 iPhones 的相簿,如你的 app 是 iOS 9 only,你可先建立 PHFetchOptions,並把 TypeiTunesSynced 加到 includeAssetSourceTypes property,再 assign 到 picker 的 assetCollectionFetchOptionsassetsFetchOptions,就可顯示那些相簿。

ghost commented 8 years ago

主要是感觉这部分的行为跟系统的picker略有差异:)

1and2papa commented 8 years ago

在我看來 Photos framework 仍很粗糙,還有很多限制,而系統的 picker 應不是用 Photos framework,所以不能避免差異。