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

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

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

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

      1. <tfoot id='GQBEM'></tfoot>

        從 iCloud 中的應用程序備份阻止

        backing up prevent from the app in iCloud(從 iCloud 中的應用程序備份阻止)
          <bdo id='KfsLq'></bdo><ul id='KfsLq'></ul>
            <tfoot id='KfsLq'></tfoot>
              <legend id='KfsLq'><style id='KfsLq'><dir id='KfsLq'><q id='KfsLq'></q></dir></style></legend>

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

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

                    <tbody id='KfsLq'></tbody>

                  本文介紹了從 iCloud 中的應用程序備份阻止的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  蘋果存儲指南的方式給我帶來了更多問題,因為我從 Documents 目錄維護的大部分數據(文件、數據庫和某種與應用程序相關的東西).最近我將一個二進制文件上傳到應用程序商店,它被拒絕了,蘋果向我提供了一份報告 根據這一點,我將更改我的代碼,如下所示

                  The way apple storage guidelines is creating more problem for me because most of the data i am maintaining from the Documents directory (files,dataBase and some kind of app related stuff).Recently i uploaded a binary file to the app store it was rejected and apple provided me a report according to this point i am going to change my code as a below

                  - (NSString *)applicationDocumentsDirectory {
                  NSString *documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
                  NSURL *pathURL= [NSURL fileURLWithPath:documentPath];
                  [self addSkipBackupAttributeToItemAtURL:pathURL];
                  return documentPath;
                  
                  }
                  
                   - (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;
                  }
                  

                  我的問題:

                  1.我可以直接對文檔目錄使用 addSkipBackupAttributeToItemAtURL: 方法來禁止我在文檔目錄中的所有文件的 iCloud 備份.

                  1.can i use addSkipBackupAttributeToItemAtURL: method directly to the documents directory to privent the iCloud backup for my all files in the documents directory.

                  2.上面提到的代碼足以讓我的應用在應用商店中獲得批準,以防我的最后一個二進制文件由于不備份"屬性而被拒絕,因為我的文檔目錄中不包含不備份"屬性.

                  2.Above mentioned code is enough for my app to be approve in app store in case my last binary rejected due to "do not back up" attribute not included for my documents directory.

                  推薦答案

                  您應該能夠將此屬性設置為文件夾,以避免備份完整的文件夾.

                  You should be able to set this attribute to a folder in order to avoid backup of the complete folder.

                  但請注意,對完整的 Documents 文件夾執行此操作可能不是一個好方法.首先,這將造成您的應用程序沒有備份內容的情況,因此在手機恢復時應用程序將處于原始狀態.我也可以想象這不是蘋果想要的"方式,因此可能導致應用程序被拒絕(總是猜測).如果可能,我會在 Document 目錄中為您的非備份內容創建一個子文件夾,并將所有內容放在那里(如果您已經在商店中擁有此應用程序的版本,這可能需要一些遷移代碼).

                  Note however that it might noch be a good approach to do this to the complete Documents folder. First of all this will create a situation where you're app has no backed-up content thus on a restore of the phone the App will be in vanilla state. I could also imagine that this just is not the way "as Apple intended" and thus could lead to rejection of the app (always a guesswork). If possible, I would create a subfolder for your non-backed-up content in the Document directory and put everything there (this might need some migration code though if you already have a version of this app on the store).

                  請注意,存儲指南確實允許在 Documents 目錄中存儲用戶創建/不可重新創建的內容,您只需標記下載的內容等不能放入 Caches 目錄的內容(例如,如果用戶預計此內容可以離線使用).

                  Note that the storage guidelines do allow storage of user-created / non-recreatable content in the Documents directory and you only have to mark things like downloaded content etc. that you cannot put in the Caches directory (for example if the user expects this content to be available offline).

                  這篇關于從 iCloud 中的應用程序備份阻止的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='iOC4z'></tbody>
                • <tfoot id='iOC4z'></tfoot>

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

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

                          1. <legend id='iOC4z'><style id='iOC4z'><dir id='iOC4z'><q id='iOC4z'></q></dir></style></legend>

                          2. 主站蜘蛛池模板: 国产99久久久国产精品下药 | 日韩免费一区二区 | 成人在线精品视频 | 久久精品国产亚洲一区二区三区 | 欧美v片| 久久久成人免费一区二区 | 精品视频在线一区 | 天堂资源视频 | 国产精品久久久久久吹潮 | 免费在线性爱视频 | 亚洲精品福利视频 | 欧美一级免费看 | 国产999精品久久久久久 | 国产在线视频一区二区董小宛性色 | 亚洲国产成人精品女人久久久 | 亚洲色图网址 | 精品综合 | 国产91在线 | 亚洲 | 欧美成人精品一区二区男人看 | 六月色婷 | 国产成人精品免费视频 | 性视频网 | 亚洲一二三在线观看 | 日韩欧美三级电影 | 午夜欧美一区二区三区在线播放 | 日韩欧美一区在线 | 久久久久亚洲精品 | 国产欧美精品一区二区色综合朱莉 | 91麻豆精品国产91久久久更新资源速度超快 | 不卡一区二区三区四区 | 久久一级免费视频 | 免费久久网站 | 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 日韩精品一区二区三区中文字幕 | 日韩中文一区二区三区 | 日本小视频网站 | 免费a大片 | 免费视频中文字幕 | 91 在线| 91精品国产91 | 日日日色 |