菜鸟教程小白 发表于 2022-12-13 07:05:50

ios - 在 iOS 应用程序及其扩展程序之间共享的应用程序组容器的最大存储限制是多少


                                            <p><p>我为我的应用创建了 WatchKit 扩展。两者共享一个通用的应用程序组容器来存储和获取数据文件。 </p>

<p>在我的应用及其扩展程序之间共享的该应用组容器的最大存储限制是多少?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我相信应用组没有特殊的大小限制。 (至少,我在 Apple 的文档中找不到任何相关信息。)</p>

<p>但是,可以存储的数据量受到“设备”上可用内存量的限制。自从 <a href="https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Settings.html" rel="noreferrer noopener nofollow">documentation</a> 以来,那个“设备”似乎就是你的 iPhone(而不是你的 Apple Watch)。状态:</p>

<blockquote>
<p>WatchKit settings must be stored in a shared group container that is accessible to both your iOS app and your WatchKit extension. Because the WatchKit settings bundle resides in your iOS app, the system writes preference values to the iOS app’s container by default. </p>
</blockquote></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 在 iOS 应用程序及其扩展程序之间共享的应用程序组容器的最大存储限制是多少,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/30168456/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/30168456/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 在 iOS 应用程序及其扩展程序之间共享的应用程序组容器的最大存储限制是多少