<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>あらびき林檎。 &#187; iPhone SDK</title>
	<atom:link href="http://splitchin.com/tech/tag/iphone-sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Thu, 02 Feb 2012 10:31:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhoneアプリ　UINavigationControllerを使用した、ナビゲーションUIのメモ。その１</title>
		<link>http://splitchin.com/tech/2010/01/10/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uinavigationcontroller%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%80%81%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3ui%e3%81%ae/</link>
		<comments>http://splitchin.com/tech/2010/01/10/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uinavigationcontroller%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%80%81%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3ui%e3%81%ae/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 07:30:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[UINavigationController]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=513</guid>
		<description><![CDATA[				「Macを買うなら…」でおなじみの、秋葉館オンラインショップもちろん話題のiPodも本体を含め関連商品充実！
				
				
				UiKitフレームワークに含まれている、UINavigationContr [...]]]></description>
			<content:encoded><![CDATA[				<p>「Macを買うなら…」でおなじみの、<A HREF="http://px.a8.net/svt/ejp?a8mat=1NLQR5+AV5URM+BEK+5ZEMQ" target="_blank">秋葉館オンラインショップ</A><BR>もちろん話題のiPodも本体を含め関連商品充実！<br />
				<img border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=1NLQR5+AV5URM+BEK+5ZEMQ" alt=""></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/UINavigationController2.png" alt="UINavigationController" title="UINavigationController" width="320" height="293" class="alignnone size-full wp-image-544" /></p>
				<p>UiKitフレームワークに含まれている、UINavigationControllerを使用した、<br />
				ナビゲーションUIについての私的メモです。InterfaceBuilderなどでの設定の説明は省いてます。</p>
				<h3>UINavigationControllerクラス</h3>
				<p>NSObject<br />
				　　　|<br />
				　　　+&#8211;UIResponder<br />
				　　　　　　|<br />
				　　　　　　+&#8211;UIViewController<br />
				　　　　　　　　　|<br />
				　　　　　　　　　+&#8211;<strong>UINavigationController</strong></p>
				<h4>1. UINavigationControllerクラスとは</h4>
				<p>オブジェクトの階層の外観を管理する、ナビゲーションバーのための特殊なコントローラ。アプリケーションに提供されたビューコントローラを使用して、ナビゲーションバーの設定やビューを描画することが可能。各ビューコントローラは、ナビゲーションバーのナビゲーションアイテムを持っています。</p>
				<h4>2. UINavigationCotrollerのナビゲーションでの働き</h4>
				<ul>
				<li>UINavigationControllerオブジェクトは複数のUIViewCotrollerオブジェクトを保持していて、そのオブジェクトの画面遷移を管理。</li>
				<li>UINavigationControllerオブジェクトが保持しているUIViewオブジェクトと、ナビゲーションを合成したものを表示。</li>
				<li>そのUIViewオブジェクトを、Windowオブジェクトの子ビューとすることで、ナビゲーションバーを含む画面が表示される。</li>
				</ul>
				<h3>実装サンプル</h3>
				<p>NavigationSampleAppDelegateクラスに、UINavigationControllerのメンバ変数と、プロパティ宣言を追記。</p>
				<pre class="brush: cpp;">
//NavigationSampleAppDelegate.h
@interface NavigationSampleAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
    UIWindow *window;
    UINavigationController *navigationController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;

@end
</pre>
				<p>NavigationSampleAppDelegate.mに、実装ディレクティブを追加。<br />
				UINavigationControllerのビューをウインドウに追加して、deallocメソッドにも追記。</p>
				<pre class="brush: cpp;">
//  NavigationSampleAppDelegate.m

#import &quot;NavigationSampleAppDelegate.h&quot;

@implementation NavigationSampleAppDelegate

@synthesize window;
@synthesize navigationController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    // Override point for customization after application launch
	[window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
}

- (void)dealloc {
    [navigationController release];
    [window release];
    [super dealloc];
}
</pre>
				<p>これで、画面遷移を制御するコントローラーの下地の追加が完了しました。</p>
				<h3>InterfaceBuilderで、MainWindow.xibのUINavigationControllerを編集</h3>
				<p>InterfaceBuilder上で、NavigationControllerで制御したいコントローラーを、Libraryから選択して、xibを編集し、ビルドすると、下記の例ようになります。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/NavigationBar1.png" alt="NavigationBar" title="NavigationBar" width="320" height="113" class="alignnone size-full wp-image-548" /></p>
				<p>次回は、スタートページと、遷移先ページ、遷移イベントの実装などについて、メモして行きたいと思います！<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/01/IBNavigationController.png" alt="IBNavigationController Library" title="IBNavigationController" width="280" height="235" class="alignnone size-full wp-image-562" /></p>
				<p><!--Amazon --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4897978440" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon --></p>
				<h5>【関連記事】</h5>
				<p>iPhoneアプリ開発の環境構築</p>
				<ul>
				<li><a href="http://splitchin.com/tech/2010/01/03/iphone-sdkを、snowleopardに入れる/">iPhone SDKを、SnowLeopardに入れる</a></li>
				<li><a href="http://splitchin.com/tech/2010/01/04/iphone-sdk-ドキュメント/">iPhone SDK ドキュメントの入手</a></li>
				</ul>
				<p>iPhoneアプリ HelloWorld</p>
				<ul>
				<li><a href="http://splitchin.com/tech/2010/01/07/iphoneアプリ%E3%80%80helloworld%E3%80%80その１%E3%80%80画面を作成する/">iPhoneアプリ HelloWorld その１</a></li>
				<li><a href="http://splitchin.com/tech/2010/01/09/iphoneアプリ-helloworld-その２%E3%80%80viewcontrollerの追加/" target="new">iPhoneアプリ HelloWorld　その２ ViewController</a></li>
				<li><a href="http://splitchin.com/tech/2010/01/09/iphoneアプリ-helloworld-その３%E3%80%80viewcontrollerの実装/">iPhoneアプリ HelloWorld その３　ViewControllerの実装</a></li>
				</ul>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/10/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uinavigationcontroller%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%80%81%e3%83%8a%e3%83%93%e3%82%b2%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3ui%e3%81%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK ドキュメント</title>
		<link>http://splitchin.com/tech/2010/01/04/iphone-sdk-%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88/</link>
		<comments>http://splitchin.com/tech/2010/01/04/iphone-sdk-%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 04:58:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=262</guid>
		<description><![CDATA[				iPhone SDK ドキュメント
				さて、iPhoneアプリ環境構築（iPhone SDKを、SnowLeopardに入れる）が終わったら、
				iPhoneアプリ開発のために、必要なドキュメントを入 [...]]]></description>
			<content:encoded><![CDATA[				<h3>iPhone SDK ドキュメント</h3>
				<p>さて、iPhoneアプリ環境構築（<a href="http://splitchin.com/tech/2010/01/03/iphone-sdkを、snowleopardに入れる/">iPhone SDKを、SnowLeopardに入れる</a>）が終わったら、<br />
				iPhoneアプリ開発のために、必要なドキュメントを入手します。</p>
				<p><img class="aligncenter size-full wp-image-264" title="iPhone SDK3 Document" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDK3Document1.png" alt="" width="500" height="421" /></p>
				<ul>
				<li>iPhone Developer ドキュメント　（日本語版）<br />
				<a href="http://developer.apple.com/jp/iphone/library/japanese.html" target="new">http://developer.apple.com/jp/iphone/library/japanese.html</a></li>
				</ul>
				<p>↓　翻訳が最新版に追いついていない場合もあるので、本家サイトの情報はこちらから。</p>
				<ul>
				<li>iPhone OS Reference Library (英語）<br />
				<a href="http://developer.apple.com/iphone/library/navigation/index.html?section=Resource+Types&amp;topic=Getting+Started" target="new">http://developer.apple.com/iphone/library/navigation/index.html?section=Resource+Types&amp;topic=Getting+Startedl</a></li>
				</ul>
				<p><!-- Amazon --><br />
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=FF0060&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4798022322" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
				<!-- /Amazon --></p>
				<ul>
				<li>【関連記事】<a href="http://splitchin.com/tech/2010/01/03/iphone-sdkを、snowleopardに入れる/">iPhone SDKを、SnowLeopardに入れる</a></li>
				</ul>
				<div><span style="font-family: 'Lucida Grande', 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: normal; white-space: pre-wrap;"><br />
				</span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/04/iphone-sdk-%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDKを、SnowLeopardに入れる</title>
		<link>http://splitchin.com/tech/2010/01/03/iphone-sdk%e3%82%92%e3%80%81snowleopard%e3%81%ab%e5%85%a5%e3%82%8c%e3%82%8b/</link>
		<comments>http://splitchin.com/tech/2010/01/03/iphone-sdk%e3%82%92%e3%80%81snowleopard%e3%81%ab%e5%85%a5%e3%82%8c%e3%82%8b/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:07:23 +0000</pubDate>
		<dc:creator>arakkyee</dc:creator>
				<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[SnowLeopard]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=219</guid>
		<description><![CDATA[				こちらは、iPhoneアプリ開発環境を構築するために、
				OSX10.6.1に、iPhone SDK 3.1.2をインストールした時の履歴です。(2009/12月）
				※環境や、SDK Version [...]]]></description>
			<content:encoded><![CDATA[				<p>こちらは、iPhoneアプリ開発環境を構築するために、<br />
				OSX10.6.1に、iPhone SDK 3.1.2をインストールした時の履歴です。(2009/12月）</p>
				<p><span style="color: #ffcc00;"><span style="color: #ff9900;">※環境や、SDK Versionによって、差があるようなので、<br />
				最新の情報は、Appleのサイトで確認してください</span>。</span></p>
				<h3>1. Apple Developer Connectionのサイトへ</h3>
				<ul>
				<li>Developer Connection<a href="http://developer.apple.com/" target="new">http://developer.apple.com</a></li>
				</ul>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/devsnowlepard1.png"><img class="alignnone size-full wp-image-225" src="http://splitchin.com/tech/wp-content/uploads/2010/01/devsnowlepard1.png" alt="Apple Developer Center Snow Leopard" width="500" height="110" /></a></p>
				<p>サイトの下の方にスクロールして、「Visit iPhone Dev Center」をクリック。</p>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/AppleDevconneciton1.png"><img class="size-full wp-image-231" src="http://splitchin.com/tech/wp-content/uploads/2010/01/AppleDevconneciton1.png" alt="Visit iPhone Dev Center" width="516" height="429" /></a></p>
				<h3>2. iPhone Dev Centerへ</h3>
				<p>上記手順で、iPhone Dev Centerのページを開いたら、</p>
				<ul>
				<li>iPhone Dev Center<a href="http://developer.apple.com/iphone/index.action" target="new">http://developer.apple.com/iphone/index.action</a></li>
				</ul>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDK.png"><img class="alignnone size-full wp-image-227" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDK.png" alt="iPhone SDK 3.1.2 OSX SnowLeopard" width="500" height="239" /></a></p>
				<p><a href="http://www.apple.com/jp/support/appleid/" target="new">Apple ID</a>でログインし、もしApple IDを取得していなければ、登録します。</p>
				<p>「Downloads」をクリックします。<br />
				<a href="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDK312.png"><img class="size-full wp-image-232" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDK312.png" alt="iPhone SDK Download" width="500" height="211" /></a></p>
				<p>OSXのバージョンに合った、SDKをダウンロードします。</p>
				<p>今回は、SnowLeopard Downloadsの、「iPhone SDK 3.1.2 with Xcode 3.2.1」を<br />
				ダウンロード。</p>
				<p>容量が大きくて、結構な時間がかかります。</p>
				<h3>3. iPhone SDKのインストール</h3>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDKInstall.png"><img class="size-full wp-image-233" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneSDKInstall.png" alt="iPhone SDK インストール" width="517" height="300" /></a></p>
				<p>iPhone SDKを、インストールします。さらに時間がかかります。</p>
				<h3>4. XCodeの起動</h3>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/Xcode_folder.png"><img class="size-full wp-image-234" src="http://splitchin.com/tech/wp-content/uploads/2010/01/Xcode_folder.png" alt="" width="500" height="260" /></a></p>
				<p>「Machintosh HD」→ 「Developer」→ 「Application」→「xcode」で<br />
				iPhoneアプリ開発用IDE、Xcodeを起動します。</p>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/xcode.png"><img class="size-full wp-image-236" src="http://splitchin.com/tech/wp-content/uploads/2010/01/xcode.png" alt="xcode起動" width="473" height="526" /></a></p>
				<p>これで、iPhoneアプリ開発用の環境が整いました。</p>
				<p><!-- Amazon --><br />
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=FF0060&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4798022322" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe><br />
				<!-- /Amazon --></p>
				<ul>
				<li>【関連記事】<a href="http://splitchin.com/tech/2010/01/04/iphone-sdk-ドキュメント/">iPhone SDK ドキュメント</a></li>
				</ul>
				<h3>5. その他.</h3>
				<p>実際にiPhoneアプリを配布するためには、「iPhone Developer Program」（有料）に、<br />
				登録する必要があります。</p>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhonDevProgram.png"><img class="size-full wp-image-239" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhonDevProgram.png" alt="iPhone Developer Program" width="500" height="283" /></a></p>
				<table>
				<tbody>
				<tr>
				<th>Standard Program</th>
				<td>$99</td>
				</tr>
				<tr>
				<th>Enterprise Program</th>
				<td>$299</td>
				</tr>
				</tbody>
				</table>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/03/iphone-sdk%e3%82%92%e3%80%81snowleopard%e3%81%ab%e5%85%a5%e3%82%8c%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

