/** iCloud Document Sync makes it easy for developers to integrate the iCloud document storage APIs into iOS applications. This is how iCloud document-storage and management should've been out of the box from Apple. Integrate iCloud into iOS (OS X coming soon) Objective-C document projects with one-line code methods. Sync, upload, manage, and remove documents to and from iCloud with only a few lines of code (compared to the hundreds of lines and hours that it usually takes). Get iCloud up and running in your iOS app in only a few minutes. Updates and more details on this project can be found on [GitHub](http://www.github.com/iRareMedia/iCloudDocumentSync). If you like the project, please star it on GitHub! The `iCloud` class provides methods to integrate iCloud into document projects. Adding iCloud Document Sync to your project is easy. Follow these steps below to get everything up and running. 1. Drag the iCloud Framework into your project 2. Add `#import <iCloud/iCloud.h>` to your header file(s) iCloud Document Sync 3. Subscribe to the `<iCloudDelegate>` delegate. 4. Call the following methods to setup iCloud when your app starts: @warning Only available on iOS 6.0 and later on apps with valid code signing and entitlements. Requires Xcode 5.0.1 and later. Check the online documentation for more information on setting up iCloud in your app. */試了很多次, 終於解決了2個問題:
- Build 會失敗: ld: framework not found iCloud
- <iCloud/iCloud.h> not found.
問題2解法:把 iCloud.h 加入project 裡, 然後把 source code 裡的 <iCloud/iCloud.h> 改為 "iCloud.h" 就OK了.
使用心得, 這個範例似乎不太穩定, 很容易掛掉, 在 debug 模式裡, 可以看到錯誤訊息, 但不知道該如何解.
相關文章:iCloud and UIDocument: Beyond the Basics, Part 1/4