icloud

iCloud + Storage of media in iPhone Documents folder

守給你的承諾、 提交于 2019-11-28 23:39:00
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 , of instapaper fame, has a good take on the issue, which is that the recommended location for storing

CloudKit - no server-side logic?

三世轮回 提交于 2019-11-28 23:14:50
问题 With CloudKit, you can focus on your client-side app development and let iCloud eliminate the need to write server-side application logic . CloudKit provides you with Authentication, private and public database, structured and asset storage services — all for free with very high limits. You cannot upload any code to run on Apple's servers? I've heard it being compared to Google App Engine and other cloud computing platforms, but without the ability to run your own code, isn't the whole thing

iCloud: Callback for NSFileManager's startDownloadingUbiquitousItemAtURL?

北慕城南 提交于 2019-11-28 18:53:38
I am using NSFileManager 's startDownloadingUbiquitousItemAtURL to download file from iCloud to local copy (the local does not yet have the copy of the file in this case). I can't seem to find the callback for this process. I need the callback to tell my app that the requested file is finished downloaded (to local copy) so other task can start reading the content of the file and does stuff. I can check to see if the file is downloaded. But it would involve in polling constantly. Is there a way to do this without setting a timer to poll for this? I believe that this method is intended to be

Method for downloading iCloud files? Very confusing?

我怕爱的太早我们不能终老 提交于 2019-11-28 17:19:36
I have basic iCloud support in my application (syncing changes, making ubiquitous, etc.), but one crucial omission so far has been the lack of "download" support for files that exist (or have changes) in the cloud, but are not in sync with what's currently on disk. I added the following methods to my application, based on some Apple-provided code, with a couple tweaks: The download methods: - (BOOL)downloadFileIfNotAvailable:(NSURL*)file { NSNumber* isIniCloud = nil; if ([file getResourceValue:&isIniCloud forKey:NSURLIsUbiquitousItemKey error:nil]) { // If the item is in iCloud, see if it is

How can I use iCloud to synchronize a .zip file between my apps?

二次信任 提交于 2019-11-28 16:45:51
Is it possible to upload a .zip file to iCloud , and then have it be synchronized across all of a user's iOS devices? If so, how would I go about doing this? If there is any File size limit, then also mention max. file size allowed. This is how I synchronized zip files with iCloud . Steps: 1) http://transoceanic.blogspot.in/2011/07/compressuncompress-files-on.html . Refer this link to download zip api which is having code for zipping and unzipping folder. 2) Now all you need to play with NSData. 3) "MyDocument.h" file #import <UIKit/UIKit.h> @interface MyDocument : UIDocument @property (strong

MPMediaItem and iTunes Match

荒凉一梦 提交于 2019-11-28 16:29:15
问题 I have an app that uses the iPod Library API to access the song database in iOS. With the release of iTunes Match, any song which is not on the device will fail to load. Is there a way I an request that the song be downloaded? Perhaps using the new iCloud API? Edit: To be clear I am not asking how to download songs with iTunes Match using the iPhone. The iOS SDK allows access to the iPod Library via the MPMediaQuery/MPMediaItems. On a iOS device with iTunes Match enabled songs which are in

CoreData and iCloud

这一生的挚爱 提交于 2019-11-28 15:45:30
问题 I am developing a core data application and was thinking of adding iCloud support, but after looking around on the web I frequently heard that iCloud+CoreData is unreliable and will often break. Is this true? A book I am reading on the subject of core data mentions that iCloud+CoreData was unreliable in iOS 5 but has since been fixed, however I have also heard the opposite, that iCloud+CoreData is still unreliable in iOS 6. If so would storing the database in a custom format help at all? Any

How to use iCloud to store and sync app files

≯℡__Kan透↙ 提交于 2019-11-28 15:31:20
问题 I already have an iPhone App that stores data in a file in the local documents folder. Now I learnt about iCloud technologies and my first question was: is there a way to use iCloud as a directory when sometimes I check for new versions? I mean: can I avoid using UIDocument, file coordinators and file presenters? I want just to know if could treat iCloud like a special folder and only use NSFileManager to push and retrieve files. Last note: I don't use Core Data or any database, I only have a

Xcode 6 iOS 8 iCloud core data setup

两盒软妹~` 提交于 2019-11-28 15:19:38
Has anyone got iCloud core data syncing setup on Xcode 6 and iOS 8? (hopefully this isn't a duplicate post) Where did iCloud Core Data storage option go? I remember Core Data had an extra storage option called Core Data storage, but now in Xcode 6 it only seems to show key-value and document storage when I enable the iCloud toggle in Xcode 6. Background Info New iPad app Xcode 6 Targeting minimum version iOS 7 but hoping it works for iOS 8 too? (We can set iOS 8 as minimum) Want to use iCloud Core Data storage instead of key-value or document storage. Have logged into the same Apple account in

Crash when adding persistent store (iCloud enabled) in app delegate

冷暖自知 提交于 2019-11-28 13:50:43
问题 I am going to start updating this to help those seeking to use this as reference for their own personal code. Newest update I'm fairly sure I have found a way to resync devices back together once they have stopped talking to each other. I'm going to update my answer below with all of the details. I thoroughly hope you all find this helpful. It's taken almost 2 months of trial and error to figure this one out. So please reference and share this with others who are having similar issues getting