菜鸟教程小白 发表于 2022-12-12 18:55:30

iphone - iPhone 和 iPad 中缓存目录的大小是多少?


                                            <p><p>我目前在应用程序的 Library/Cache 目录中存储了我的应用程序所需的大约 58 MB 文件。 </p>

<p>我有一些用户提示他们看不到这些文件。我怀疑这可能是因为缓存目录在低空间条件下被操作系统清除。</p>

<p>所以,我想知道缓存目录的大小,以便我可以计划存储我的文件。</p>

<p>请告诉我。</p>

<p>谢谢!</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我认为大小未定义,您可以存储内容直到填满所有磁盘空间。但是缓存目录有一个注释 - </p>

<blockquote>
<p>On iOS 5.0 and later, the system may delete the Caches directory on
rare occasions when the system is very low on disk space. This will
never occur while an app is running. However, you should be aware that
iTunes restore is not necessarily the only condition under which the
Caches directory can be erased.</p>
</blockquote>

<p>见 <a href="http://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1" rel="noreferrer noopener nofollow">The Library Directory Stores App-Specific Files</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - iPhone 和 iPad 中缓存目录的大小是多少?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/8834077/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/8834077/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - iPhone 和 iPad 中缓存目录的大小是多少?