久久久久久久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. 我應(yīng)該將 sqlite 數(shù)據(jù)庫文件寫入 Documents 目錄還是

        Should i write sqlite database file to Documents directory or Library/Caches?(我應(yīng)該將 sqlite 數(shù)據(jù)庫文件寫入 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>

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

                  問題描述

                  限時送ChatGPT賬號..

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

                  解決方案

                  答案取決于你的數(shù)據(jù)庫文件是如何創(chuàng)建的:

                  根據(jù)數(shù)據(jù)存儲指南頁面:

                  <塊引用>

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

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

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

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

                  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).

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

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

                  相關(guān)文檔推薦

                  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(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(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>
                            主站蜘蛛池模板: 在线2区 | 欧美日本一区二区 | 午夜影院在线观看 | 国产高清亚洲 | 成人二区三区 | 精品欧美黑人一区二区三区 | 国产精品美女久久久久久免费 | 亚洲成人网在线播放 | 久久久久久久国产 | 久草热线 | 欧美一级在线 | 黄色大片免费观看 | 国产视频久久久 | 国产精品久久久久久久久久免费看 | 99热精品在线| 成人妇女免费播放久久久 | 色视频www在线播放国产人成 | 久久久久成人精品亚洲国产 | www.婷婷| 91视频精选 | 九色av | 人人看人人草 | 精品视频一区二区三区在线观看 | 一级久久久久久 | 日韩精品在线观看一区二区 | 欧美午夜精品久久久久免费视 | 国产三级精品视频 | 成人午夜视频在线观看 | 99久久婷婷国产综合精品电影 | 99热这里有精品 | 日韩网| 国产精品1区2区3区 中文字幕一区二区三区四区 | 国产精品日韩欧美一区二区 | 成人在线播放网站 | 一区二区三区国产精品 | 国产高清久久 | 国产精品视频免费观看 | 日韩在线观看中文字幕 | 麻豆毛片| zzzwww在线看片免费 | 成人性生交a做片 |