icloud

How do I verify a file's existence in iCloud?

て烟熏妆下的殇ゞ 提交于 2019-12-01 15:01:20
I know that the file exists, because I can download it, but I need to check to see whether it exists. I have tried using [NSFileManager contentsOfDirectoryAtPath:error:] but it gives me null. I don't understand why that is because I can still download the files that I'm looking for. Maybe it's an incorrect URL, but the URL that I'm using is the one that I printed at creation of my UIDocument that I'm looking for. Maybe I'm using the wrong method? EDIT: I have also tried using NSMetadataQuery, and I can get it to give back notifications, but it doesn't ever have results even though I can

Will iCloud sync the files in Document folder of all apps?

淺唱寂寞╮ 提交于 2019-12-01 08:54:24
I have a question about iCloud, hope you can help me with that. I have read the iCloud documentation for several times, and what I got from that document is iCloud will not update the app's Documents folder to iCloud server unless the app has configured iCloud Entitlements . But, I always see some blogs keep saying that iCloud will automatically sync files in Documents folder of all apps in the device. I don't think iCloud will do that, I mean there is only 5GB there in iCloud server. Can anybody tells me if I am right or wrong? Will iCloud sync files in Document folder of all apps? Thanks.

Apple reject my app because of not include functionality to allow users to view or select items from the Files app

浪尽此生 提交于 2019-12-01 07:34:20
问题 In my app I am get video from gallery using below method: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { } But Apple is rejected app and required to include functionality to select video items from Files app. Here is Apple give me the reason: We noticed that your app enables users to view and select files, but it does not include functionality to allow users to view or select items from the Files app and the user's iCloud

App Sandbox/iCloud and Snow Leopard backwards compatibility

梦想与她 提交于 2019-12-01 07:33:39
By now all Mac App Store developers know that all apps must have the new OSX Lion Sandboxing enabled going forward. For existing apps, we must enable it in XCode 4.2 and set in place the data migration plist. So my existing Mac App Store app has a build target of OSX 10.6.8 Snow Leopard. Not only that, but it does access the webcam and also synchronizes stuff to iCal via CalendarStore API and AppleScript. I'm expecting most of my app to break when I enable the Sandbox, but when I get that working in the Sandbox I'm wondering if a Sandboxed app can run in Snow Leopard. Does anybody have

icloud doesn't update the download precess

↘锁芯ラ 提交于 2019-12-01 06:02:44
Usually, my code is ok to download the files from iCloud. But sometimes the downloading process will not be updated. Following are some code snips: start download: NSFileManager* fm = [NSFileManager defaultManager]; if (![fm startDownloadingUbiquitousItemAtURL:file error:nil]) { return NO; } ///////////////////////// id query = [[icloudClass alloc] init]; _query = query; [query setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryUbiquitousDocumentsScope]]; NSArray *listItems = [[file path] componentsSeparatedByString:@"/"]; NSPredicate *pred = [NSPredicate predicateWithFormat: @"%K == %@",

Will iCloud sync the files in Document folder of all apps?

余生颓废 提交于 2019-12-01 05:54:24
问题 I have a question about iCloud, hope you can help me with that. I have read the iCloud documentation for several times, and what I got from that document is iCloud will not update the app's Documents folder to iCloud server unless the app has configured iCloud Entitlements. But, I always see some blogs keep saying that iCloud will automatically sync files in Documents folder of all apps in the device. I don't think iCloud will do that, I mean there is only 5GB there in iCloud server. Can

iOS5 data storage issue. Where to save files?

懵懂的女人 提交于 2019-12-01 04:44:18
Firstly, I have read these: (1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul (2) http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5 (I can not submit more than two hyperlinks because I'm a noob.) and all the related developer forum threads in apple.com. Problem : with the new iOS5, we need to save files to /Caches folder, and save only user generated files to the /Documents folder. And caches folder may be deleted unexpectedly even when our app is not running, on app updates or system restores. The deletion at an

icloud doesn't update the download precess

ⅰ亾dé卋堺 提交于 2019-12-01 04:09:58
问题 Usually, my code is ok to download the files from iCloud. But sometimes the downloading process will not be updated. Following are some code snips: start download: NSFileManager* fm = [NSFileManager defaultManager]; if (![fm startDownloadingUbiquitousItemAtURL:file error:nil]) { return NO; } ///////////////////////// id query = [[icloudClass alloc] init]; _query = query; [query setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryUbiquitousDocumentsScope]]; NSArray *listItems = [[file path

How to use NSUbiquitousKeyValueStore and NSUserDefaults together

微笑、不失礼 提交于 2019-12-01 03:55:42
Documentation is not clear on how to use NSUbiquitousKeyValueStore with edge cases. If I want to set a value, I understand that I should set a value to both NSUserDefaults and NSUbiquitousKeyValueStore since iCloud could be disabled. However in my tests [NSUbiquitousKeyValueStore defaultStore] return a valid object even if iCloud is disabled (tested on Mac OS). Also, to my understanding is that if iCloud is enabled, NSUbiquitousKeyValueStore 's values are stored to disk (and available offline). What are the reason to use NSUserDefaults if you are sure that you have less than 64KB of data? I am

NSMetadataQuery ignoring custom file package type

为君一笑 提交于 2019-12-01 03:29:19
问题 I'm using UIManagedDocument s to manage my files in iCloud. After setting up the NSMetadataQuery like so: iCloudQuery = [[NSMetadataQuery alloc] init]; [iCloudQuery setSearchScopes: [NSArray arrayWithObject:NSMetadataQueryUbiquitousDocumentsScope]]; [iCloudQuery setPredicate: [NSPredicate predicateWithFormat:@"%K like %@", NSMetadataItemFSNameKey, @"DocumentMetadata.plist"]]; I'm encountering a curious problem - when my documents are named without a file extension (for example @"NewDocument2"