icloud

Download image from iCloud Drive iOS objective C

狂风中的少年 提交于 2019-12-25 05:24:03
问题 I have gone through many links, but nothing worked for me. All i need to do is fetch all iCloud Drive files and download images. I succeeded fetching all files using below code - (void)presentDocumentPicker { NSArray *documentTypes = @[@"public.content", @"public.text", @"public.source-code ", @"public.image", @"public.audiovisual-content", @"com.adobe.pdf", @"com.apple.keynote.key", @"com.microsoft.word.doc", @"com.microsoft.excel.xls", @"com.microsoft.powerpoint.ppt"];

iCloud update policy on CoreData in development and production mode

懵懂的女人 提交于 2019-12-25 05:14:35
问题 as specified in the subject I am developing un application that made use of CoreData and its built in iCloud feature. Whenever I connect my devices (an iPad and an iPhone) to xcode and run the application, I can see after few minutes the log of CoreData updating data. In both devices on iCloud section, I can see my application full entitled for iCloud. First question: how often are iCloud content pushed (or pulled) to devices ? Is there a way to force this ? Second, I noticed that the devices

Save a NSArray to iCloud and retrieve it

隐身守侯 提交于 2019-12-25 03:18:24
问题 I have an app that currently saves a NSMutableArray to a file in the documents directory on the iPad. This is saved by [residentData writeToFile:filePath atomically:NO]; and is read back in by; residentData = [[NSMutableArray alloc] initWithContentsOfFile:filePath]; I need to write this file to iCloud, as the data needs to be available across several devices. I have tried the following to create the file in iCloud; NSData *myFileData = [NSKeyedArchiver archivedDataWithRootObject:residentData]

Xcode - “The provided ubiquity name is already in use” - how do I find a folder

大兔子大兔子 提交于 2019-12-24 15:27:46
问题 I'm getting this message in Xcode: The provided ubiquity name is already in use., NSURL=file://localhost/var/mobile/Applications/6C748748-9689-4F40-B8D7- CDE8CA280FF8/Documents/SharedCoreDataStores/138F8194-DCC7-4D66-859B- B2C35BDF2984/iCloudStore.sqlite How do I find the location of this file (iCloudStore.sqlite)? I've tried ~/Library/Containers and ~/Library/Mobile Documents. Thanks 回答1: you can find it at NSURL *DocumentsURL = [[NSFileManager defaultManager] URLsForDirectory

How do i make my cloudkit app load the data as its loading?

感情迁移 提交于 2019-12-24 14:34:48
问题 In the app i am making, there will be a lot of data for the app to load from iCloud. My problem is that it does not load the data into a collection view until its finished receiving all the data(which takes a while). I want the app to load the data onto the collection view as its receiving the data, so the user does not have to wait. Or is it better to have the app only load some of the data at a time? How do i do this? Here is my code that i am using to load the data. Note: I am using swift

How to share Core Data between multiple users?

人走茶凉 提交于 2019-12-24 11:54:18
问题 I am trying to build a simple shared database app for iOS (specifically iPhone for now). The app would let multiple unrelated users on multiple devices add entries to and remove entries from a shared Core Data database that would be searchable by all users. (Ideal product) I've been searching a lot about iCloud + Core Data but have mostly come across angry rants about how much it sucks. I've looked into Parse but got stuck when trying to use AFNetworking(?). Others have told me to use Amazon

PhoneGap / Cordova 1.5 iOS “do not back up” file attribute

我只是一个虾纸丫 提交于 2019-12-24 06:49:38
问题 According to the developer documentation on Apple's website: https://developer.apple.com/library/ios/#qa/qa1719/_index.html Starting in iOS 5.0.1 a new "do not back up" file attribute has been introduced allowing developers to clearly specify which files should be backed up. (com.apple.MobileBackup) I'm wondering if this is supported in PhoneGap / Cordova, as I want to be able to store some offline data (data that can be downloaded or otherwise recreated, but that the user expects to be

Cannot sync simple text file with iCloud (bad file descriptor)

爱⌒轻易说出口 提交于 2019-12-24 03:13:04
问题 I'm having trouble synching a simple textfile, I get this error when trying to open it: {NSFilePath=/private/var/mobile/Library/Mobile Documents/4C224W52W5~com~piso13~opusDomini/currentLogPath, NSUnderlyingError=0xde9b460 "The operation couldn‚Äôt be completed. Bad file descriptor"} This is how I create it -(BOOL)createLogFolderFile{ NSString *uuid = nil; CFUUIDRef uuidRef = CFUUIDCreate(nil); uuid = (NSString*)CFUUIDCreateString(nil, uuidRef); CFRelease(uuidRef); NSError *error = nil; [uuid

Using iCloud enabled Core Data NSArray-taking method

倖福魔咒の 提交于 2019-12-24 02:08:12
问题 I've been setting up and testing Core Data in my app and everything works great locally; however, as soon as I enable iCloud via: NSDictionary *options; if ([self iCloudEnabled]) { options = @{NSSQLitePragmasOption: @{@"journal_mode" : @"DELETE"}, NSPersistentStoreUbiquitousContentNameKey : @"iCloudStore"}; [self subscribeToNotifications]; } else options = @{NSSQLitePragmasOption: @{@"journal_mode" : @"DELETE"}}; And run my app, I get the following error spammed in the console: *** ERROR:

Is it possible to use NSUbiquitousKeyValueStore within the iOS 7 or iOS 8 Simulator?

怎甘沉沦 提交于 2019-12-23 21:08:41
问题 I'm trying to test an app that uses iCloud key-value storage. Everything is working on a physical device, but the key-value storage doesn't save anything using the simulator. From what I understand based on this documentation, iCloud testing is possible on the simulator and this should work. (btw, I've configured iCloud on the simulator) I'm using Xamarin / Monotouch with the following code: var store = NSUbiquitousKeyValueStore.DefaultStore; store.SetString ("TestKey", "test123"); store