icloud

Are there any tools for browsing iCloud data of your app?

天大地大妈咪最大 提交于 2019-12-07 01:36:53
问题 I am working on integrating iCloud in my app and sometimes having problems with conflicts and save errors. The fact that the data is stored on the cloud makes it very hard to debug the problems. As far as I know, the data on the iCloud servers are mirrored to a directory on the device. Is there any tool (an iOS or OSX app) that will allow me to see the contents of this directory or the files in the iCloud servers? I know that it is possible to query the files in the directory with

How can I sort an icloud NSMetadataQuery result of UIDocument's by modification date?

南笙酒味 提交于 2019-12-07 00:36:09
问题 I have an iOS application that uses a simple UIDocument model with a single content field for iCloud storage. I retrieve the list of documents to populate a UITableView using an NSMetadataQuery. I want to have new documents appear at the top of this table, but the default sorting appears to be old -> new. I know if I had a custom date field in the document I could sort the query with the NSSortDescriptor on that field but my question is is it possible to sort by the intrinsic modification

Full CoreData uploading (backup) to iCloud Drive and restore if need

。_饼干妹妹 提交于 2019-12-06 16:30:29
My project is CoreData-based application. Is it enough to upload sqlite-file to CloudDrive for restoring data when need? Is there any tutorials how to implement it? Nothing for you to do. Just enable iCloud and it will always be backed up and restorable automatically. See Enable iCloud with Core Data . It's really simple. 来源: https://stackoverflow.com/questions/30886331/full-coredata-uploading-backup-to-icloud-drive-and-restore-if-need

iCloud versus iCloud Drive versus CloudKit

人盡茶涼 提交于 2019-12-06 15:39:15
Would I be correct in assuming that a user of my iOS app that uses CloudKit would not need to pay a monthly fee to Apple to use my CloudKit app? Apple just changed from annual to monthly for anything above 5GB for iCloud... or is it unrelated? I've been hunting around Apples development site and I cannot seem to find a reference for who gets charged a fee for use of CloudKit. WWDC made brief reference that there is a limit that can be reached and it seemed like they were indicating that the developer would have to pay Apple if their user base exceeded a certain point. If that's the case, a

iCloud and a Web Application

时光总嘲笑我的痴心妄想 提交于 2019-12-06 13:20:54
I have an iOS app that lets the user manager recipes. I would also like them to be able to manage the same recipes on their iPad and Mac. It seems that iCloud would allow me to do exactly that. However, if I want to also build a web application that provides the same functionality, am I right in thinking I need my own non-iCloud solution? Is there any iCloud API that lets a user log in to their apple account and access the data added in the iOS/OS X applications? If I want to allow web access to the data, am I forced to write my own data service and syncing process? Or are there some ways to

Accessing deleted objects in iCloud notification

拥有回忆 提交于 2019-12-06 12:29:13
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 NSDeletedObjectsKey set. NSSet *deletedObjects = [info objectForKey:NSDeletedObjectsKey]; for (NSManagedObjectID

iCloud NSMetadata query results are blank

徘徊边缘 提交于 2019-12-06 12:26:47
问题 I've been working on adding icloud to my project (which is quite a pain in the buns) and I'm able to save and remove files, but I can't get a list of the files stored in iCloud. I've tried solutions from about 10 different websites (including the Apple documentation). Whenever I call [self.query startQuery]; everything seems to be working: The correct methods get called, the methods execute exactly as they should. Then when I ask for an nsarray of the files in my app's iCloud Documents

Returning a list of directories with NSMetadataQuery and NSPredicate

佐手、 提交于 2019-12-06 11:59:57
问题 I'm trying to get a list of directories in the user's iCloud folder. I worked out how to look for special types of files (such as txt files) and it works fine: NSMetadataQuery *query = [[NSMetadataQuery alloc] init]; _query = query; //Search all files in the Documents directories of the application’s iCloud container directories: [query setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryUbiquitousDocumentsScope]]; NSPredicate *pred = [NSPredicate predicateWithFormat:@"%K ENDSWITH '.txt'"

iCloud sync of images in Photos Framework created album

筅森魡賤 提交于 2019-12-06 10:01:25
TL;DR - Will an album created with [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:@"ALBUM_TITLE"]; sync over iCloud? And will synced images have the same localIdentifier on every device ? In my App I need to store a number of distinct albums/folders of photos that the user adds by either using the camera or adding an existing photo from the photo library. Ideally what I want is all the photos from the app to be located in the same one (specific to my app) album in the Photos app, for this album to sync over iCloud, and for me to be able to store references to the

App Rejected for iCloud Backup Flagging

雨燕双飞 提交于 2019-12-06 08:56:30
问题 My app has a few in-app purchases that downloads video content to the /Documents folder. I recently submitted an update to the app and was rejected because I did not flag the video files to not be backed up to iCloud. I succesfully implemented the flagging but I am still confused by this statement in Apple's documentation: Important The new "do not back up" attribute will only be used by iOS 5.0.1 or later. On iOS 5.0 and earlier, applications will need to store their data in /Library/Caches