icloud

Save iOS 8 Documents to iCloud Drive

青春壹個敷衍的年華 提交于 2019-11-27 07:30:51
I want to have my app save the documents it creates to iCloud Drive, but I am having a hard time following along with what Apple has written. Here is what I have so far, but I'm not for sure where to go from here. UPDATE2 I have the following in my code to manually save a document to iCloud Drive: - (void)initializeiCloudAccessWithCompletion:(void (^)(BOOL available)) completion { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ self.ubiquityURL = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil]; if (self.ubiquityURL != nil) { dispatch

My app is getting crashed on UIDocumentPickerViewController

◇◆丶佛笑我妖孽 提交于 2019-11-27 06:43:05
问题 I am working on file sharing on my iOS App, I am new to UIDocumentPickerViewController . I do not know why my app is crashing. UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.image"] inMode:UIDocumentPickerModeImport]; documentPicker.delegate = self; documentPicker.modalPresentationStyle = UIModalPresentationFormSheet; [self presentViewController:documentPicker animated:YES completion:nil]; App is crashing on the

NSUbiquitousKeyValueStore error: no valid com.apple.developer.ubiquity-kvstore-identifier entitlement

孤街浪徒 提交于 2019-11-27 05:56:30
问题 I'm having a problem integrating iCloud with my app. When I set test out iCloud availability, I receive Success for the function NSURL *iCloudURL = [fileManager URLForUbiquityContainerIdentifier:@"AppID"]; but right after this, when I attempt to perform: NSUbiquitousKeyValueStore *iCloudStore = [NSUbiquitousKeyValueStore defaultStore]; I receive the error NSUbiquitousKeyValueStore error: no valid com.apple.developer.ubiquity-kvstore-identifier entitlement. Any ideas on how to fix this? My App

iCloud + CoreData - how to avoid pre-filled data duplication?

孤街浪徒 提交于 2019-11-27 05:20:15
问题 I have a problem with an iCloud shoebox application and hope some-one can help me (I've spent many hours fighting it in vain). The App: - A simple library style application - containing set of categories (Cat1 .. CatN) each containing items (Item1...ItemM). I used Apple's iPhoneCoreDataRecipes to set up iCloud CoreData stack. Everything works almost perfect with iCloud except - there should be a number of pre-filled empty categories the user can start using once he has opened the app for the

Using Core Data, iCloud and CloudKit for syncing and backup and how it works together

落花浮王杯 提交于 2019-11-27 04:09:21
问题 I am in the early stages of creating an app where I would like to save, sync and backup data. The app will not store any files just data in a database. It is going to be iOS 8 and up so I am able to use CloudKit. I did some research and still not clear on how Core Data, iCloud and CloudKit work together. As far as understand CloudKit is just a way of getting and retrieving data to/from the cloud. Is CloudKit just a different way of syncing data with iCloud? My questions are: If I do use

iOS 5.0.1 : How to verify that the folder is marked as “Do not back up” for iCloud?

不问归期 提交于 2019-11-27 03:41:24
I want to set Do not back up to my folder which is in Document Directory . I found code for "Do not back up" , but how do i verify that the folder is marked. According to the docs you linked, if you set the method up exactly how they have it listed on that page, the method will return YES if the attribute is marked correctly. Aditya Rathnam For iOS 5.1, run the app in the simulator, and run the following command in the Terminal: xattr {filename} You should see the following if the item is correctly marked for exclusion: com.apple.metadata:com_apple_backup_excludeItem open simulator delete the

Where we have to store download data in iPhone application?

岁酱吖の 提交于 2019-11-27 03:37:05
问题 I am working on In-App-Purchase and downloading data after payment in users /Documents folder. Apple has rejected my application it's says you are not following iOS Data Storage guideline. Can any one help me how to implement iCloud functionality in my application? Thank you 回答1: According to the iOS Data Storage Guidelines you should probably be storing your purchased data inside the Application_Home/Library/Caches directory. The downloaded data does not belong in the Documents folder. Apple

Why was my application still rejected after excluding files from iCloud backup using this code?

空扰寡人 提交于 2019-11-27 03:00:37
问题 I have added the following code to exclude files from iCloud backup, but my application was still rejected: - (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { if (&NSURLIsExcludedFromBackupKey == nil) { // iOS <= 5.0.1 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; } else { // iOS >= 5.1 NSLog(@"%d",

Open iCloud Drive in iOS app

北战南征 提交于 2019-11-27 02:50:13
问题 I want to allow document(pdf, doc, docx) selection in my app. And I want to integrate iCloud for this. All I want to do is to open the iCloud drive from my app and there user can select the file and returns back to the origin app. Something like whatsapp has done for document selection in iOS app. Any idea regarding this? 回答1: Read this below link you will get idea: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide

AnyTrans for iOS Mac(ios设备管理器)

我的未来我决定 提交于 2019-11-27 02:34:38
AnyTrans for mac破解版能够帮助您随意移动音乐,照片,联系人,消息或任何其他数据和文件,还可以巧妙地将视频转换为iOS兼容格式,AnyTrans for mac破解版能通过自动无线备份保护您的重要数据,并保持个人数据的安全和清晰,如果有需要的朋友就快来看看吧,希望您会喜欢这款AnyTrans for mac破解版。 点击下载AnyTrans for iOS Mac(ios设备管理器) AnyTrans for mac软件介绍 你聪明的方式管理、传输、备份、导出、导入、删除、修改、上传、管理所有的iOS数据和文件 在一个便利的地方完全管理你的iPhone,iPad,iPod,甚至是iTunes和iCloud内容。 AnyTrans打破了同步边界,并将所有iPhone,iPad,iPod,iTunes和iCloud内容的每一次访问整合到一个地方,确保您花更少的时间管理它们,但更多时间享受数字生活。 AnyTrans for mac软件功能 成为您的音乐收藏大师 从iTunes限制中释放您的音乐。现在AnyTrans让你无限制地掌握它们。导出iPhone轨道并在电脑上欣赏它们。在几秒钟内轻松将歌曲添加到iPhone / iPod,无需删除现有音乐。在新iPhone上享受旧iPhone的播放列表,或将您最喜爱的歌曲设为铃声。你可以完全控制你的音乐。 照顾好你的iPhone照片