icloud

How do I tell iOS to download a file from iCloud Drive and get progress feedback

三世轮回 提交于 2019-12-18 11:59:31
问题 I am using the UIDocumentPicker to select a file but if it's large it can take a while to open and that is not a particularly good experience for users. I have looked at the iCloud programming guide from Apple and I cannot seem to figure out how to actually download a file and get some progress feedback, the documentation is just too vague. I know I am supposed to do something with NSMetadataItems, but there isn't much explaining actually how to get one and use it. Can someone please explain

Prevent app from backing up documents folder?

筅森魡賤 提交于 2019-12-18 10:57:44
问题 I'm trying to prevent my app backing up files to iCloud but have become completely confused and a little lost. -EDIT- I've updated this to reflect the changes I've made thanks to the posters below. I want to prevent back up of files which are downloaded to the app's documents directory. So far I have a class called PreventBackup with the following method: + (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { NSError *error = nil; BOOL success = [URL setResourceValue: [NSNumber

Can you sync CoreData with iCloud?

喜夏-厌秋 提交于 2019-12-18 10:29:37
问题 does anyone know if and how you can sync CoreData apps with iCloud? If I understand the Apple iCould instructions right you can not sync CoreData, can you? 回答1: Given that you tagged this with Cocoa, I suggest that you watch the video for WWDC 2011 Session 315 - "What's New in Core Data on Mac OS X". For iOS, check out Session 303 - "What's New in Core Data on iOS". These will answer all of your questions regarding Core Data and iCloud. Since this is still under NDA, that's the most I can

Creating New Event to iCloud Apple Calendar always Results 400 Bad Request

倾然丶 夕夏残阳落幕 提交于 2019-12-18 09:34:14
问题 Currently, I am developing a website which will sync data from Apple Calendar to my app and vice versa. For fetching data from Apple Calendar to my application, I already can get the .ics files from iCloud calendar and it works just fine. However, I have an issue when creating new Event in Apple Calendar. Somehow, every request that I send results 400 Bad Request . Here is the detail of the request: Header: If-None-Match: * Method: PUT Uri destination: https://p46-caldav.icloud.com/[USER_ID]

Why ubiquityIdentityToken returns nil?

半世苍凉 提交于 2019-12-18 09:09:08
问题 NSFileManager.defaultManager().ubiquityIdentityToken on some device in some case returns nil, even I set up iCloud Documents in Capabilities and I am logged in to iCloud on device. How reliable operation of the ubiquityIdentityToken do you met? Am I doing something wrong? On iPhone it returns correctly with a real token, but on iPad it returns with nil, even if I am logged in. 回答1: To get token, you need additionaly to turn on iCloud Drive on device. If it is off ubiquityIdentityToken will

How enable iCloud support for sqlite?

妖精的绣舞 提交于 2019-12-18 03:43:43
问题 I want to provide iCloud support for my wrapper around sqlite. Is not using coredata. I wonder how enable iCloud for it. The database content is changed all the time (is for invoicing). Also, if is possible to have some kind of versioning will be great. Exist any sample I can use to do this? 回答1: The short answer is no, you would need to use Core Data as you suspected. Apple has stated that sqlite is unsupported. Edit: Check out the section on iCloud that's now in the iOS Application

iCloud set up and provisioning

谁说胖子不能爱 提交于 2019-12-18 03:35:17
问题 I am trying to set up iCloud within my iOS application, I have done the following: Removed all old certs on mac. Added iCloud to the App in Dev Console - created new container and added to app Redone the dev provision and downloaded Installed the provision Added the iCloud Entitlement to the app And this is where is all goes wrong... I can't get the app running again, the app is building but I am getting an error saying: The entitlements specified in your application’s Code Signing

iCloud + Storage of media in iPhone Documents folder

こ雲淡風輕ζ 提交于 2019-12-18 02:49:27
问题 I, like many developers, got an email from Apple recently that stated we should move our data from the documents directory into another folder to permit more streamlined backup to iCloud. In recent testing it appears that [your app] stores a fair amount of data in its Documents folder. Since iCloud backups are performed daily over Wi-Fi for each user's iOS device, it's important to ensure the best possible user experience by minimizing the amount of data being stored by your app. Marco Arment

Swift write/save/move a document file to iCloud drive

纵饮孤独 提交于 2019-12-17 17:58:13
问题 I've been trying for over two days to write a file to iCloud drive. I have tried writing a simple text file directly, locally then moving it, using UIDocumentMenuViewController, etc. I'm not getting any errors with my code and stepping through debugger, it looks successful, but when I check to see if the file exists or at least the iCloud directory, there is nothing there. I tried on both the simulator and my iPhone, triggering iCloud synching, and everything else I can think of. My main goal

Exposing an app's ubiquitous container to iCloud Drive in iOS 8

余生颓废 提交于 2019-12-17 15:34:28
问题 I'm developing an iCloud-enabled app where users will be able to import and export files via iCloud Drive. When browsing iCloud Drive, either using the UIDocumentPickerViewController (iOS 8) or the Finder (OS X Yosemite), I can see directories created/owned by other iCloud-Drive-enabled apps, such as, Automator, Keynote, or TextEdit. I want our app to expose its ubiquitous documents directory in iCloud Drive, too, but haven't been able to figure it out yet. Within some of the aforementioned