Accessing Videos in library using AssetsLibrary framework iPhone?

后端 未结 4 1259
无人及你
无人及你 2021-01-03 02:58

I am trying to access videos in iPhone library using AssetsLibrary Framework with the help of following code...but when I run the application the code is not working...the a

4条回答
  •  走了就别回头了
    2021-01-03 03:31

    I am using ELC Image Picker Controller, and it's already using ALAssetsGroupAll and still not showing any videos.

    I solved this by adding an asset filter. You can limit to videos, photos or both. I guess photos-only was the default. Please consider the following line if the above fails:

    [assetGroup setAssetsFilter:[ALAssetsFilter allAssets]];
    

提交回复
热议问题