MPMediaPickerController.showsCloudItems seems to do nothing

前端 未结 4 731
暖寄归人
暖寄归人 2021-02-07 11:54

Posted this on Apple with no luck, but now that the iOS 6 NDA is up, hoping more eyes will see it here.

I am attempting to modify an app to only allow a user to select

4条回答
  •  忘了有多久
    2021-02-07 12:22

    A better solution to test if an item comes from iCloud in the didPickMediaItems delegate:

         MPMediaItem *selectedItem = [selectedItems objectAtIndex:0];
    
         if (![[selectedItem valueForProperty:MPMediaItemPropertyIsCloudItem] boolValue])
    

    You don't really need to play it, it is more efficient to use the embedded property in the MPMediaItem.

提交回复
热议问题