2012年5月11日金曜日

iCloud プログラミングチュートリアル

画像を iCloud に格納してデバイス間で共有するアプリを作る。4回構成。
ポイントは次の通り。
  • Create, Read, Update, and Delete documents – both on iCloud *and* locally
  • Create documents consisting of multiple files with NSFileWrapper
  • Give previews of documents in the master view in an efficient manner
  • Allow a toggle for the user to enable/disable iCloud in Settings
  • Move/copy files to and from iCloud when user switches
  • Alllow renaming and deleting files – the safe way
  • Deal with conflicts and document updates

第1回目はモデルの実装。UIDocumentのサブクラスを作る。

第2回目はユーザインターフェイスの作成。Storyboardを使う。



第3回目は iCloudをアプリで利用する為の設定、ファイルの検索、更新の検出など。



第4回目はコンフリクト時の処理、ファイルの移動(local→iCloud とその逆)について

コンフリクトを検出し、そのデータに感嘆符<!>を表示する処理を加えている。


0 件のコメント:

コメントを投稿