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

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

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

      <legend id='ijrF4'><style id='ijrF4'><dir id='ijrF4'><q id='ijrF4'></q></dir></style></legend>
    2. 防止 iCloud 同步數據(使用 .nosync?)

      Prevent iCloud sync of data (using .nosync?)(防止 iCloud 同步數據(使用 .nosync?))

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

    3. <tfoot id='dt8xp'></tfoot>

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

                <tbody id='dt8xp'></tbody>

                <legend id='dt8xp'><style id='dt8xp'><dir id='dt8xp'><q id='dt8xp'></q></dir></style></legend>
                本文介紹了防止 iCloud 同步數據(使用 .nosync?)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                到目前為止,我能想到的最好的方法是彈出一個窗口,要求用戶禁用 iCloud 同步,同時將所有數據移動到 Documents 目錄,這樣它就不會了t 被擦除:在iOS5中,是否可以檢測用戶是否設置了要備份的應用程序?

                我為 iPhone/iPad 開發離線地圖應用程序.

                I develop offline mapping application for iPhone/iPad.

                我們過去將所有數據(可能有很多演出)存儲在 Caches 目錄中.

                We used to store all of the data (many gigs potentially) in the Caches directory.

                從 iOS5 開始,當用戶的硬盤開始變滿時,可以隨機刪除 Caches 目錄中的文件.

                As of iOS5, the files in the Caches directory can be randomly deleted when the user's hard drive starts getting full.

                如何在不將數據同步到 iCloud、iTunes 且不被隨機刪除的情況下存儲本地數據?我的本地數據是一個大型目錄樹,其中包含許多小數據文件,位于數千個子目錄中.

                How can I store local data, without the data being synced to iCloud, iTunes, and without it being randomly deleted? My local data is a large directory tree with many small data files, in thousands of subdirectories.

                我將目錄樹從庫緩存目錄移動到文檔目錄中的 data.nosync 目錄,因為我們已經閱讀過這可能是一個解決方案.但是,nosync 文件夾中的數據仍在備份到 iCloud.

                I moved our directory tree from the library cache directory to a data.nosync directory in the documents directory, because we had read this might be a solution. However, the data in the nosync folder is still being backed up to iCloud.

                現在我創建目錄:

                NSString* noSyncDirectory() {
                  static NSString *directory = nil;
                  if (!directory) {
                    directory = [[NSString stringWithFormat:@"%@/%@",
                                  documentsDirectory(), @"data.nosync"] retain];
                    [Constants createDirectoryIfNeeded:directory];
                  }
                  return directory;
                }
                

                推薦答案

                來自:https://developer.apple.com/library/ios/#qa/qa1719/_index.html

                您可以使用以下方法設置不備份"擴展屬性.每當您創建不應備份的文件或文件夾時,將數據寫入文件,然后調用此方法,將 URL 傳遞給文件.

                You can use the following method to set the "do not back up" extended attribute. Whenever you create a file or folder that should not be backed up, write the data to the file and then call this method, passing in a URL to the file.

                #include <sys/xattr.h>
                - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
                {
                    const char* filePath = [[URL path] fileSystemRepresentation];
                
                    const char* attrName = "com.apple.MobileBackup";
                    u_int8_t attrValue = 1;
                
                    int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
                    return result == 0;
                }
                

                可以找到更多信息:https://developer.apple.com/icloud/documentation/data-storage/

                進一步說明:雖然開發人員文檔錯誤地暗示(這些文件將不會被清除并且不會包含在用戶的 iCloud 或 iTunes 備份中.")不備份標志兼作不 -清除標志并非如此.只需將文件留在緩存目錄中并標記它們不備份不會阻止它們的擦除.

                Further note: While the developer documentation incorrectly implies ("These files will not be purged and will not be included in the user's iCloud or iTunes backup.") that the do-not-backup flag doubles as a do-not-purge flag that is not the case. Simply leaving files in the Caches Directory and flagging them do-not-backup will not prevent their wipe.

                這篇關于防止 iCloud 同步數據(使用 .nosync?)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 故事板,以編程方式確定路徑)
                How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                Semantic Issue: Property#39;s synthesized getter follows Cocoa naming convention for returning #39;owned#39; objects(語義問題:屬性的合成 getter 遵循 Cocoa 命名約定以返回“擁有對象) - IT屋-程序員軟件開發技術分享
                • <i id='yuAkI'><tr id='yuAkI'><dt id='yuAkI'><q id='yuAkI'><span id='yuAkI'><b id='yuAkI'><form id='yuAkI'><ins id='yuAkI'></ins><ul id='yuAkI'></ul><sub id='yuAkI'></sub></form><legend id='yuAkI'></legend><bdo id='yuAkI'><pre id='yuAkI'><center id='yuAkI'></center></pre></bdo></b><th id='yuAkI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yuAkI'><tfoot id='yuAkI'></tfoot><dl id='yuAkI'><fieldset id='yuAkI'></fieldset></dl></div>
                  • <bdo id='yuAkI'></bdo><ul id='yuAkI'></ul>
                      <tbody id='yuAkI'></tbody>
                  • <legend id='yuAkI'><style id='yuAkI'><dir id='yuAkI'><q id='yuAkI'></q></dir></style></legend>

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

                          <tfoot id='yuAkI'></tfoot>
                          主站蜘蛛池模板: 国产一区久久 | 亚洲欧洲av在线 | 国产综合在线视频 | 久久精品国产99国产精品亚洲 | 亚洲 成人 在线 | 亚洲欧美在线观看 | 五月激情婷婷在线 | 久久久精品网 | 欧美成人性生活 | 国产精品二区三区在线观看 | 日韩中文字幕一区二区 | 国产精品国产三级国产aⅴ原创 | 欧美午夜视频 | 精品小视频 | 日本大香伊一区二区三区 | 免费看黄视频网站 | 日韩一区二区在线播放 | 亚洲精品第一 | 国产精品美女www爽爽爽 | 九九免费视频 | 男女污网站 | 日韩欧美在线观看 | 你懂的免费在线 | 成人免费在线观看 | 麻豆av网| 超碰在线人人 | 视频在线一区二区 | 国产成人高清视频 | 神马福利 | 国产欧美日韩一区二区三区在线观看 | 日韩精品一区二区三区在线播放 | 亚洲国产精品久久久久 | 黄网站色大毛片 | 一区二区精品 | 在线黄av | 18gay男同69亚洲网站 | 男人天堂99| 日韩毛片免费看 | 一级a性色生活片久久毛片波多野 | 国产精品一区二区免费 | 欧美精品首页 |