icloud

Accessing deleted objects in iCloud notification

大兔子大兔子 提交于 2020-01-02 10:32:57
问题 I have an app set up much like the iCloudCoreDataRecipes sample (ie, using Core Data in conjunction with iCloud). In the app delegate, I observe the NSPersistentStoreDidImportUbiquitousContentChangesNotification When a notification arrives, I call [context mergeChangesFromContextDidSaveNotification:note]; I have some additional processing I'd like to do when this notification is received but am having trouble using the objects identified by the NSManagedObjectID's present in the

Save game data into iCloud via GameKit

て烟熏妆下的殇ゞ 提交于 2020-01-02 03:59:24
问题 I'm trying to save game's data to iCloud via next code: GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer]; [localPlayer saveGameData:[NSData dataWithBytes:rawData->data() length:rawData->size()] withName:[NSString stringWithUTF8String:fileName.c_str()] completionHandler:^(GKSavedGame *savedGame, NSError *error) { if (error == nil) { DebugLog(@"Snapshot successfully saved"); } else { DebugLog(@"saveSnapshot error: %@", error.description); } }]; But getting error message: The requested

saving website contacts on iCloud

∥☆過路亽.° 提交于 2020-01-01 17:12:44
问题 Wondering if someone could give me some advice, I am building a CRM for a client, and one of their "like to haves" is that if they create a new contact they would like the contacts details be both stored in the database but also sync with there iphone/ipad address book. The only way I can think of doing this is if iCloud offers an api, is this something that could be achieved, or are there any other solutions that maybe could help me. The CRM is being built on PHP if that makes a difference.

saving website contacts on iCloud

廉价感情. 提交于 2020-01-01 17:12:07
问题 Wondering if someone could give me some advice, I am building a CRM for a client, and one of their "like to haves" is that if they create a new contact they would like the contacts details be both stored in the database but also sync with there iphone/ipad address book. The only way I can think of doing this is if iCloud offers an api, is this something that could be achieved, or are there any other solutions that maybe could help me. The CRM is being built on PHP if that makes a difference.

Prevent Backup to iCloud,is following code correct?

核能气质少年 提交于 2020-01-01 14:24:06
问题 I am downloading many audio and video files and stored them in my Home directory. Now i want to "prevent backup to iCloud" so i have added following code for my every file's url - (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; } Can anyone tell me that

Syncing a .plist file with iCloud

拜拜、爱过 提交于 2020-01-01 12:10:54
问题 I am trying to work out how to sync a .plist file I have in the "Application Support" folder in my Sandboxed app for the Mac. I know I could use the iCloud key value store, but there is a limit of 64KB per app, which may or may not be hit depending on how many thing the user adds to the app! I have read as much of the Apple documentation as possible, but I am still rather confused :( Has anyone does something similar to this? Thanks 回答1: You should create a subclass of UIDocument and use it

UIManagedDocument + iCloud “Big Picture”?

一世执手 提交于 2020-01-01 11:55:51
问题 I am working on my first "iCloud App". I worked through the Apple docs and the Stanford videos but I am still struggling to understand the "Big picture" of iCloud. My goal is to create a "Library style" app (which is Apples term for an app with "a single Core Data stack with a single persistent store coordinator and a single persistent store") like the Employees example. Following the Stanford videos I am using a UIMangedDocument to setup all Core Data stuff and enable the iCloud capabilities

My app got rejected due to not following iOS App Data Storage Guidelines

自作多情 提交于 2020-01-01 07:07:05
问题 My app got rejected due to not follow iOS App Data Storage Guidelines. My binary was rejected by the Apple App Store Review Team. On launch and content download, your app stores 6.34MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines. Next Steps Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary

Exclude from iCloud backup: NSURLIsExcludedFromBackupKey

跟風遠走 提交于 2020-01-01 01:14:13
问题 My app had been rejected the 2nd times and I lost 3 weeks :( The first submit, I excluded ONLY DIRECTORIES from being backed-up in iCloud. Apple rejected... The second submit, I excluded DIRECTORIES & PICTURES downloaded from being backed-up in iCloud. Apple again rejected... Apple also complaint that I have no "Restore" feature for my In-App purchase, while in fact, I do have a "Restore" button and it worked when I tested it. I've done as Apple had suggested by excluding the file from being

How to sync keychain over iCloud

元气小坏坏 提交于 2019-12-30 06:17:47
问题 I wan't to store sensitive data for my app in the keychain. I'd also like this to sync over devices, using iCloud. According to Apple this is possible: Does iCloud Keychain work with third-party apps? Yes. Developers can update their apps to work with iCloud Keychain. Passwords saved by those apps are kept up to date on all devices that use the app and are using iOS 7.0.3 or later or OS X Mavericks v10.9 or later. However, I can't find any documentation about what is needed by the app. Will