&tag(three20);
&tag(iPhoneSDK, Objective-C, UIKit, three20);
*目次 [#j257e9c8]
#contents
*参考情報 [#qbfacefa]
iPhoneのUI関連の便利クラス集。ライセンスはApache License。
#pre{{
Three20 is a collection of iPhone UI classes, like a photo viewer, and general utilities, like an HTTP disk cache. Three20 is derived from the Facebook iPhone app, which is one of the most downloaded iPhone apps ever.
}}

-[[facebook's three20 at master - GitHub:http://github.com/facebook/three20]]…公式GitHub。
-[[Three20 JSON datasource implementation:http://revetkn.com/?p=62]]…解説サイト。
-[[Doxygen | iphoneアプリで稼げるのか:http://iphone.longearth.net/tag/doxygen/]]…使用例。
-上記サンプルは古いので[[Three20 JSON Example Project:http://revetkn.com/?p=72]]の下の方にあるGitHubリポジトリからダウンロードしたほうがいいかもしれない。
*ダウンロード [#fdbd05a6]
http://github.com/facebook/three20からダウンロード
 git clone http://github.com/facebook/three20.git
以下は自分用
 git clone git@github.com:src256/three20.git

*サンプル・TTRemoteExamplesのビルド [#aaaa101d]
http://github.com/klazuka/TTRemoteExamplesにすぐにビルドできるサンプルがある。
#pre{{
git clone http://github.com/klazuka/TTRemoteExamples.git
cd TTRemoteExamples
git submodule update --init
TTRemoteExamples.xcodeprojを開く
}}

*プロジェクトへの組み込み手順 [#m4127d44]

**three20のダウンロード [#ue3dd1b1]
 git clone http://github.com/facebook/three20.git

**組み込むプロジェクトの作成 [#p1856583]
-Navigationベースで作成。名前はThree20Demo。

**three20の組み込み [#q8f8cd52]
-three20/src/Three20/Three20.xcodeprojをThree20Demoプロジェクトの「グループとファイル」ペインにドロップ。
--「デスティネーショングループのフォルダに項目をコピーする」のチェックはオフ。
--「参照タイプ」は「プロジェクトを基準。
-ドロップしたThree20.xcodeprojを開く。「Dependencies」グループを開き、そこにあるxcodeprojファイルを全て、Three20Demoにドロップする。Three20Demoプロジェクトには次のリストが追加された状態になる。
#pre{{
Three20Core
Three20Network
Three20Style
Three20UICommon
Three20UINavigator
Three20UI
Three20
}}

-メインメニューのプロジェクト→「アクティブターゲット"Three20Demo"を編集」を選択。
--一般タブ→直接依存関係で"+"アイコン→Three20を選択しターゲットを追加。
--ビルドタブで"他のリンカフラグ"に"-ObjC"と"-all_load"を追加。
--ビルドタブで"ヘッダ検索パスにthree20/Build/Products/three20を追加(相対パスになるようにする)。
-#import "Three20/Three20.h" できるようになる。



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS