久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='etLkr'><tr id='etLkr'><dt id='etLkr'><q id='etLkr'><span id='etLkr'><b id='etLkr'><form id='etLkr'><ins id='etLkr'></ins><ul id='etLkr'></ul><sub id='etLkr'></sub></form><legend id='etLkr'></legend><bdo id='etLkr'><pre id='etLkr'><center id='etLkr'></center></pre></bdo></b><th id='etLkr'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='etLkr'><tfoot id='etLkr'></tfoot><dl id='etLkr'><fieldset id='etLkr'></fieldset></dl></div>

          <bdo id='etLkr'></bdo><ul id='etLkr'></ul>

      1. <small id='etLkr'></small><noframes id='etLkr'>

      2. <tfoot id='etLkr'></tfoot>
      3. <legend id='etLkr'><style id='etLkr'><dir id='etLkr'><q id='etLkr'></q></dir></style></legend>
      4. 我應該將 sqlite 數據庫文件寫入 Documents 目錄還是

        Should i write sqlite database file to Documents directory or Library/Caches?(我應該將 sqlite 數據庫文件寫入 Documents 目錄還是 Library/Caches?)

        • <tfoot id='jN887'></tfoot>

            <i id='jN887'><tr id='jN887'><dt id='jN887'><q id='jN887'><span id='jN887'><b id='jN887'><form id='jN887'><ins id='jN887'></ins><ul id='jN887'></ul><sub id='jN887'></sub></form><legend id='jN887'></legend><bdo id='jN887'><pre id='jN887'><center id='jN887'></center></pre></bdo></b><th id='jN887'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jN887'><tfoot id='jN887'></tfoot><dl id='jN887'><fieldset id='jN887'></fieldset></dl></div>

            • <bdo id='jN887'></bdo><ul id='jN887'></ul>

              <small id='jN887'></small><noframes id='jN887'>

              <legend id='jN887'><style id='jN887'><dir id='jN887'><q id='jN887'></q></dir></style></legend>

                  <tbody id='jN887'></tbody>

                  本文介紹了我應該將 sqlite 數據庫文件寫入 Documents 目錄還是 Library/Caches?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經閱讀了 Apple 的數據存儲指南,并且對于我應該將我在我的應用程序中創建的 sqlite 數據庫文件保存在哪里感到非常困惑.即使應用程序處于離線模式,我也想從 sqlite 文件中讀取.我讀到,創建的此類文件應保存在庫/緩存中,并設置不備份"標志.請建議我做同樣事情的正確方法.

                  解決方案

                  答案取決于你的數據庫文件是如何創建的:

                  根據數據存儲指南頁面:

                  <塊引用>

                  1. 只有用戶生成的或您的應用程序無法重新創建的文檔和其他數據才能存儲在/Documents 目錄,將自動由 iCloud 備份.

                  2. 可以再次下載或重新生成的數據應存儲在/Library/Caches 目錄中.文件示例你應該在 Caches 目錄下包含數據庫緩存文件和可下載的內容,例如雜志、報紙使用的內容,和地圖應用程序.

                  這對我來說似乎比較清楚:如果您的應用程序以編程方式創建某些內容或生成您想要保存的數據,請將其放在緩存"文件夾中.如果這是客戶自己生成的獨特內容(通過鍵盤輸入或他們手動干預并執行的操作),請將其放入文檔"中.

                  不備份"意味著文件永遠不會發送到 iCloud,如果丟失,則必須從頭開始重新創建(或重新安裝).

                  I have read the Data Storage guidelines of Apple and am really confused as to where i should keep the sqlite database files i am creating in my app. I want to read from the sqlite files even when the app is in Offfline mode. I read that such files created should be kept in the Library/caches with the "do not backup" flag set. Please suggest me the right approach for doing the same.

                  解決方案

                  The answer depends on how your database files are created:

                  According to the Data Storage Guidelines page:

                  1. Only documents and other data that is user-generated, or that cannot otherwise be recreated by your application, should be stored in the /Documents directory and will be automatically backed up by iCloud.

                  2. Data that can be downloaded again or regenerated should be stored in the /Library/Caches directory. Examples of files you should put in the Caches directory include database cache files and downloadable content, such as that used by magazine, newspaper, and map applications.

                  This seems relatively clear to me: if your app programatically creates something or generates data that you want saved, put it in the "Caches" folder. If it's something unique that the customer themselves generate (via typing into a keyboard or something they manually intervened and did), put it in "Documents".

                  "Do Not Backup" means that the files never get sent up to iCloud and if they get lost, they have to be re-created from scratch (or re-install).

                  這篇關于我應該將 sqlite 數據庫文件寫入 Documents 目錄還是 Library/Caches?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                    <tbody id='jzkXJ'></tbody>

                      <legend id='jzkXJ'><style id='jzkXJ'><dir id='jzkXJ'><q id='jzkXJ'></q></dir></style></legend>

                        <small id='jzkXJ'></small><noframes id='jzkXJ'>

                        <tfoot id='jzkXJ'></tfoot>

                          <i id='jzkXJ'><tr id='jzkXJ'><dt id='jzkXJ'><q id='jzkXJ'><span id='jzkXJ'><b id='jzkXJ'><form id='jzkXJ'><ins id='jzkXJ'></ins><ul id='jzkXJ'></ul><sub id='jzkXJ'></sub></form><legend id='jzkXJ'></legend><bdo id='jzkXJ'><pre id='jzkXJ'><center id='jzkXJ'></center></pre></bdo></b><th id='jzkXJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jzkXJ'><tfoot id='jzkXJ'></tfoot><dl id='jzkXJ'><fieldset id='jzkXJ'></fieldset></dl></div>

                            <bdo id='jzkXJ'></bdo><ul id='jzkXJ'></ul>
                            主站蜘蛛池模板: 欧美精品成人一区二区三区四区 | 成人av免费| 男女搞网站| 色综合天天天天做夜夜夜夜做 | 毛片a区| 欧美在线观看一区二区 | 亚洲国产精品视频 | 亚洲国产精品人人爽夜夜爽 | 91美女在线观看 | 国产精品久久久久久久久久免费 | 免费午夜电影 | 亚洲成人一区 | 人人鲁人人莫人人爱精品 | 欧美高清视频 | 亚洲 中文 欧美 日韩 在线观看 | 亚洲欧美激情精品一区二区 | 成人精品鲁一区一区二区 | 欧美性受xxx | 亚洲国产aⅴ成人精品无吗 亚洲精品久久久一区二区三区 | 国产偷久久一级精品60部 | 久草成人| 美女国产一区 | 国产成人99久久亚洲综合精品 | 国产一区二区在线视频 | av在线免费观看网址 | 久久久久国产精品人 | 91视频进入| 日韩2020狼一二三 | 日韩午夜 | 午夜欧美一区二区三区在线播放 | 国产欧美视频一区二区三区 | 久草网免费 | 亚洲欧美日韩久久久 | 亚洲国产精久久久久久久 | 欧美在线视频一区二区 | 国产精品九九九 | 亚洲视频自拍 | 九色 在线| 日韩精品久久一区二区三区 | 欧美成人激情 | 成人片在线看 |