http://stackoverflow.com/questions/14925214/how-to-set-a-custom-folder-with-uifilesharingenabled-yes
You can't. iTunes only shows the contents of the app's Documents directory. iTunes doesn't let a user view the contents of folders insideDocuments.
这里要注意的是,你一定要把要共享的文件放在 Documents 根目录,不能是子目录!!! 不然 iTunes File Sharing 只会显示子目录,不会让用户点击进入子目录,也意味着放在子目录的文件不允许读取。
所以一定要把文件直接放在 Documents 下,如
/Applications/90E35BBE-7B62-4D1B-A495-809BC34AB64A/Documents/love.mp3
本文详细介绍了如何将文件放置在Documents根目录下以供iTunes文件共享使用,并强调了子目录的问题。文章还提供了一个实际例子来说明正确设置的重要性。
921

被折叠的 条评论
为什么被折叠?



