<?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</title>
	<atom:link href="http://splitchin.com/tech/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Sun, 06 May 2012 01:09:21 +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 タッチイベント</title>
		<link>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/</link>
		<comments>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 15:24:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1687</guid>
		<description><![CDATA[				スマートフォンのためのHTML5アプリケーション開発ガイド―iPhone/iPad/Android対応
				
				サンプルURL
				Apple資料
				Safari Web Content Gu [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4883377288/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4883377288">スマートフォンのためのHTML5アプリケーション開発ガイド―iPhone/iPad/Android対応</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4883377288" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2011/04/touchevent.png" alt="touchevent画像" title="touchevent" width="300" height="265" class="alignnone size-full wp-image-1689" /></p>
				<p><a href="http://splitchin.com/sample/javascript/iphone-touchevent/">サンプルURL</a></p>
				<h3>Apple資料</h3>
				<p><a href="http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/HandlingEvents/HandlingEvents.html">Safari Web Content Guide &#8211; Handling Events</a></p>
				<ul>
				<li>onTouchStart<//li>
				<li>onTouchMove<//li>
				<li>onTouchEnd<//li>
				<li>onTouchCancel<//li>
				</ul>
				<p>※onClickのようなイベントの使い方。iPhoneでは、onClickよりレスポンスが良いらしい。</p>
				<h3>タッチ数の取得</h3>
				<ul>
				<li>event.touches.length</li>
				</ul>
				<h3>タッチ座標（x, y）の取得</h3>
				<ul>
				<li>event.touches[i].pageX</li>
				<li>event.touches[i].pageY</li>
				</ul>
				<p>※iで、各タッチの座標を格納。</p>
				<p><!-- amazon-area --></p>
				<div id="ad-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=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4899772750" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon-area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap &#8211; HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク</title>
		<link>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/</link>
		<comments>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 13:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1348</guid>
		<description><![CDATA[				
				■PhoneGapとは
				HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク。
				1. PhoneGapをはじめる。
				今回は、iPhon [...]]]></description>
			<content:encoded><![CDATA[				<p><object width="420" height="261"><param name="movie" value="http://www.youtube.com/v/eabnlG6OtVI?fs=1&amp;hl=ja_JP"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eabnlG6OtVI?fs=1&amp;hl=ja_JP" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="261"></embed></object></p>
				<p>■PhoneGapとは<br />
				HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク。</p>
				<h3>1. PhoneGapをはじめる。</h3>
				<p>今回は、iPhoneアプリでのPhoneGapを試します。<br />
				<a href="http://splitchin.com/tech/2010/11/23/phonegap-htmlcssjavascript%E3%80%80androidアプリで試してみる">Android編はこちら</a>から。</p>
				<p><a href="http://www.phonegap.com/" taget="new">公式サイト</a>もしくは、<a href="https://github.com/phonegap" target="new">GitHub</a>から、PhoneGapフレームワークをダウンロードします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/phonegap.png" alt="PhoneGap" title="phonegap" width="398" height="231" class="alignleft size-full wp-image-1360" /></p>
				<p>DLしてきたZipファイルを解凍し、iOSフォルダにある、<br />
				「PhoneGapLibInstaller.pkg」を開いて、PhoneGapフレームワークをインストールします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/PhoneGap-temp.png" alt="PhoneGapTemplate" title="PhoneGap-temp" width="372" height="288" class="alignleft size-full wp-image-1365" /></p>
				<p>XCodeを起動して、新規プロジェクトを作成すると、<br />
				「PhoneGap」というテンプレートが追加されているので<br />
				それを、選択してプロジェクトを作成します。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/PhoneGap-index1.png" alt="PhoneGapIndex" title="PhoneGap-index" width="428" height="414" class="alignleft size-full wp-image-1366" /></p>
				<p>「www」というフォルダに、index.htmlファイルが追加されています。<br />
				このhtmlに、記述したり、PhoneGap APIをJSから使用することで<br />
				iPhoneアプリを作成していきます。</p>
				<h5>PhoneGap &#8211; API Reference <a href="http://docs.phonegap.com/" target="new">http://docs.phonegap.com/</a></h5>
				<ul>
				<li>Accelerometer</li>
				<li>Camera</li>
				<li>Contacts</li>
				<li>Device</li>
				<li>Events</li>
				<li>Geolocation</li>
				<li>Network</li>
				<li>Notification</li>
				</ul>
				<h3>2. PhoneGap APIの加速度センサーを使ってみる。</h3>
				<p><a href="http://docs.phonegap.com/phonegap_accelerometer_accelerometer.md.html#Accelerometer" target="new">Accelerometer</a>を参考に、accelerometer.getCurrentAccelerationを使った加速度センサーのAPIを使ってみます。</p>
				<p>前述のwwwフォルダの、index.htmlを記述します。</p>
				<pre class="brush: plain;">
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&lt;html&gt;
  &lt;head&gt;
	&lt;!-- Change this if you want to allow scaling --&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=default-width; user-scalable=no&quot; /&gt;

    &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;

    &lt;title&gt;PhoneGapTest&lt;/title&gt;

	&lt;!-- iPad/iPhone specific css below, add after your main css &gt;
	&lt;link rel=&quot;stylesheet&quot; media=&quot;only screen and (max-device-width: 1024px)&quot; href=&quot;ipad.css&quot; type=&quot;text/css&quot; /&gt;
	&lt;link rel=&quot;stylesheet&quot; media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;iphone.css&quot; type=&quot;text/css&quot; /&gt;
	--&gt;
	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;phonegap.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;

	// If you want to prevent dragging, uncomment this section
	/*
	function preventBehavior(e)
	{
      e.preventDefault();
    };
	document.addEventListener(&quot;touchmove&quot;, preventBehavior, false);
	*/

	// Wait for PhoneGap to load
	function onBodyLoad() {
		document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false);
	}

	/* When this function is called, PhoneGap has been initialized and is ready to roll */
    // PhoneGap is ready
	//
	function onDeviceReady() {
		navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
	}

	// onSuccess: Get a snapshot of the current acceleration
	//
	function onSuccess(acceleration) {
        alert('Acceleration X: ' + acceleration.x + '\n' +
              'Acceleration Y: ' + acceleration.y + '\n' +
              'Acceleration Z: ' + acceleration.z + '\n' +
              'Timestamp: '      + acceleration.timestamp + '\n');
	}

	// onError: Failed to get the acceleration
	//
	function onError() {
		alert('onError!');
	}

  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload=&quot;onBodyLoad()&quot;&gt;
  &lt;!-- PhoneGap Test Code --&gt;
  &lt;h1&gt;PhoneGap test.&lt;/h1&gt;
  &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
  &lt;!-- /PhoneGap Test Code --&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
				<p>通常のiPhoneアプリと同じように、XCodeから、ビルドします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/phoneGapAPiAccelr.png" alt="phoneGapAPIAccelr" title="phoneGapAPiAccelr" width="433" height="428" class="alignleft size-full wp-image-1369" /></p>
				<p>JavaScriptで実装したアラートに加速度センサーが動きました。</p>
				<h3>3. PhoneGap ドキュメント関連</h3>
				<p>■PhoneGap<br />
				<a href="http://www.phonegap.com/" taget="new">http://www.phonegap.com/</a></p>
				<p>■PhoneGap Roadmap<br />
				<a href="http://wiki.phonegap.com/w/page/16494820/Roadmap" target="new">http://wiki.phonegap.com/w/page/16494820/Roadmap</a></p>
				<p>■GitHub<br />
				<a href="https://github.com/phonegap" target="new">https://github.com/phonegap</a><br />
				オフィシャルのプラグインやAPIの、レポジトリがあります。</p>
				<p>■DOCS API Reference<br />
				<a href="http://docs.phonegap.com/" target="new">http://docs.phonegap.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneアプリ 世界時計 &#8220;Palm+Piece&#8221;</title>
		<link>http://splitchin.com/tech/2010/08/10/iphone%e3%82%a2%e3%83%97%e3%83%aa-%e4%b8%96%e7%95%8c%e6%99%82%e8%a8%88-palmpiece/</link>
		<comments>http://splitchin.com/tech/2010/08/10/iphone%e3%82%a2%e3%83%97%e3%83%aa-%e4%b8%96%e7%95%8c%e6%99%82%e8%a8%88-palmpiece/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 15:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK4]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>
		<category><![CDATA[palm+piece]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1240</guid>
		<description><![CDATA[				
				iPhoneアプリ 世界時計　&#8221;Plam+Piece&#8221;をリリースしました！
				&#8220;Palm+Piece&#8221;は、iPhoneの回転方向に合わせて、
			 [...]]]></description>
			<content:encoded><![CDATA[				<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/8H0LEN7OaJE&amp;hl=ja_JP&amp;fs=1?rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8H0LEN7OaJE&amp;hl=ja_JP&amp;fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
				<p>iPhoneアプリ 世界時計　&#8221;Plam+Piece&#8221;をリリースしました！</p>
				<p>&#8220;Palm+Piece&#8221;は、iPhoneの回転方向に合わせて、<br />
				「東京」「上海」「ロンドン」「ニューヨーク」と、<br />
				時刻とデザインが変化する、世界時計です。</p>
				<p>また、画面をタップすると、国花が舞い散ります。</p>
				<p><a href="http://splitchin.com/work/palm+piece/" >詳細はこちら</a></p>
				<p>↓　ダウンロードはこちらから<br />
				<a href="http://ax.itunes.apple.com/jp/app/palm-piece/id385538935?mt=8" target="new"><img src="http://splitchin.com/tech/wp-content/uploads/2010/08/apstlogo.gif" alt="AppStoreからダウンロード" title="apstlogo" width="150" height="51" class="alignleft size-full wp-image-1246" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/08/10/iphone%e3%82%a2%e3%83%97%e3%83%aa-%e4%b8%96%e7%95%8c%e6%99%82%e8%a8%88-palmpiece/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone 4 シミュレーターを試してみた。</title>
		<link>http://splitchin.com/tech/2010/06/13/iphone-4-%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/06/13/iphone-4-%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 16:41:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK4]]></category>
		<category><![CDATA[その他]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone4]]></category>
		<category><![CDATA[iPhoneシミュレーター]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1125</guid>
		<description><![CDATA[				iPhone SDK4 GMをセットアップしたので、
				iPhone 4 Simulatorを起動してみました。
				1. シミュレーターを起動する
				パス結構深いです。
				「Macinto [...]]]></description>
			<content:encoded><![CDATA[				<p>iPhone SDK4 GMをセットアップしたので、<br />
				iPhone 4 Simulatorを起動してみました。</p>
				<h4>1. シミュレーターを起動する</h4>
				<p>パス結構深いです。<br />
				「Macintosh HD」→「Developer」→「Platforms」→<br />
				「iPhoneSimulator.platform」→「Developer」→「Applications」<br />
				→ iPhone Simulator</p>
				<h4>2. シミュレーターの種類</h4>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/06/iPhoneSimMenu-300x68.png" alt="iPHoneシミュレーター" title="" width="300" height="68" class="alignleft size-medium wp-image-1127" /></p>
				<p>3種類、シミュレーターが入っています。<br />
				・「iPhone」320×480　アスペクト比3:2（3G/GS）※実機は、163ppi<br />
				・「iPad」1024×768 　アスペクト比4:3 ※実機は、132ppi<br />
				・「iPhone4」960×640　アスペクト比3:2　※実機は、326ppi</p>
				<h4>3. iPhone4 Safariを起動してみる。</h4>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/06/iPhone-safari.png" alt="iPhone4 Safari" title="" width="320" height="457" class="alignleft size-full wp-image-1128" /></p>
				<p>iPhone最適化されたページも、<br />
				テキストやレイアウトは高精細モードに対応してますね。<br />
				ただ、画像やアイコンは荒くなりますね。</p>
				<h4>ホームスクリーンのアイコン</h4>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/06/iPhonei4con.png" alt="" title="iPhonei4con" width="395" height="459" class="alignleft size-full wp-image-1129" /></p>
				<p>
				iPhone用の52pxと、恐らくiPhone4用に最適化された<br />
				高精細モードのアイコンとでは、画質に差が出ますね。</p>
				<p>これは、Retinaディスプレイ3.5inch,<br />
				iPhone3Gモデルのディスプレイの4倍に当たる326 ppiで<br />
				見るとどうなるか、実機で見てみたいですね。 </p>
				<p><!-- Amazon area --></p>
				<div class="amazon-are">
				<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=4797353279" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/06/13/iphone-4-%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%83%bc%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneアプリ　ステータスバーを消す</title>
		<link>http://splitchin.com/tech/2010/03/29/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%b9%e3%83%86%e3%83%bc%e3%82%bf%e3%82%b9%e3%83%90%e3%83%bc%e3%82%92%e6%b6%88%e3%81%99/</link>
		<comments>http://splitchin.com/tech/2010/03/29/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%b9%e3%83%86%e3%83%bc%e3%82%bf%e3%82%b9%e3%83%90%e3%83%bc%e3%82%92%e6%b6%88%e3%81%99/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 15:22:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[UIStatusBar]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=906</guid>
		<description><![CDATA[				ケーズデンキオンラインショップ
				
				
				1. 動的にステータスバーを消す、色を変更させる
				
- (void)viewDidLoad
{
	// スーパー・クラスのメソッドを呼び出す
	 [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLRJC+4W8DDU+1V6W+601S2" target="_blank">ケーズデンキオンラインショップ</a><br />
				<img border="0" width="1" height="1" src="http://www13.a8.net/0.gif?a8mat=1NLRJC+4W8DDU+1V6W+601S2" alt=""></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/03/statusbar-cap.jpg" alt="ステータスバー"  width="300" height="147" class="alignnone size-full wp-image-911" /></p>
				<h3>1. 動的にステータスバーを消す、色を変更させる</h3>
				<pre class="brush: plain;">
- (void)viewDidLoad
{
	// スーパー・クラスのメソッドを呼び出す
	[super viewDidLoad];

	//ステータスバー off
	[[UIApplication sharedApplication] setStatusBarHidden:YES];
</pre>
				<table>
				<tr>
				<th>setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:YES</th>
				<td>ステータスバーを黒くする</td>
				</tr>
				<tr>
				<th>setStatusBarHidden:YES animated:YES</th>
				<td>ステータスバーが上に引っ込む</td>
				</tr>
				</table>
				<h3>2. ローディング画面時の、ステータスバーを消す</h3>
				<p>しかし、上記のやり方だと、起動時にはステータスバーがデフォルトのままなので、全画面で変更したい場合、info.plistを編集しておきます。</p>
				<p>XCode の/Resourceフォルダ info.plist を開き、<br />
				Information Property List キーの中に UIStatusBarStyle キーを作成する。<br />
				(Information Property List 行を control+クリック で Add Row を選択し、キー名を入力)<br />
				例）値をUIStatusBarStyleBlackOpaque =起動時からステータスバーの色が黒くなる。</p>
				<h4>2-1. ステータスバーを消したい場合</h4>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/03/status-hidden1.jpg" alt="ステータスバー消す" title="" width="300" height="63" class="alignnone size-full wp-image-931" /></p>
				<table>
				<th>UIStatusBarHidden</th>
				<td>チェックすると、ステータスバー非表示</td>
				</table>
				<h4>2-2. 色や透明度を変更したい場合</h4>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/03/statusbar-black.jpg" alt="ステータスバーを黒くする" title="" width="300" height="71" class="alignnone size-full wp-image-913" /></p>
				<p>key: UIStatusBarStyleのValueの設定内容</p>
				<table>
				<tr>
				<th>UIStatusBarStyleDefault </th>
				<td>標準（灰色）</td>
				</tr>
				<tr>
				<th>UIStatusBarStyleBlackTranslucent</th>
				<td>黒く透ける</td>
				</tr>
				<tr>
				<th>UIStatusBarStyleBlackOpaque</th>
				<td>黒くする</td>
				</tr>
				</table>
				<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=333333&#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=B0032AMH74" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
				</div>
				<p><!-- /Amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/03/29/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%b9%e3%83%86%e3%83%bc%e3%82%bf%e3%82%b9%e3%83%90%e3%83%bc%e3%82%92%e6%b6%88%e3%81%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneアプリ　実機テスト手順</title>
		<link>http://splitchin.com/tech/2010/02/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e5%ae%9f%e6%a9%9f%e3%83%86%e3%82%b9%e3%83%88%e6%89%8b%e9%a0%86/</link>
		<comments>http://splitchin.com/tech/2010/02/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e5%ae%9f%e6%a9%9f%e3%83%86%e3%82%b9%e3%83%88%e6%89%8b%e9%a0%86/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 10:31:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>
		<category><![CDATA[Provisioning profile]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=879</guid>
		<description><![CDATA[				不要なパソコンが売れる！！
				
				下記サイトを参考にさせて頂いて、iPhoneアプリの実機テストのログ。
				iPhone実機へのアプリインストールまでの道のり
				http://tryout [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLQR5+ATDJYA+1QLM+60H7M" target="_blank">不要なパソコンが売れる！！</a><br />
				<img src="http://www17.a8.net/0.gif?a8mat=1NLQR5+ATDJYA+1QLM+60H7M" border="0" alt="" width="1" height="1" /></p>
				<p>下記サイトを参考にさせて頂いて、iPhoneアプリの実機テストのログ。</p>
				<p>iPhone実機へのアプリインストールまでの道のり<br />
				<a href="http://tryout-lab.com/2009/08/26/290.html" target="new">http://tryout-lab.com/2009/08/26/290.html</a></p>
				<p>1. iPhone Developer Programに加入する<br />
				2. CSR作成<br />
				3. CSRをiPhone Developers Programで登録し、証明書を取得する<br />
				4. デバイス登録する<br />
				5. AppIDを登録する<br />
				6. Provisioning Profilesを作成する<br />
				7. Provisioning ProfilesをXCodeに登録する<br />
				8. XCodeでのアプリケーションへの設定<br />
				9. iPhone SDKを3.0.1対応にする(今は大丈夫なようです。）<br />
				10. 実機で起動</p>
				<ul>
				<li>iPhone開発ガイド &#8211; デバイスの管理<a href="http://developer.apple.com/jp/iphone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html" target="new">http://developer.apple.com/jp/iphone/library/documentation/Xcode/Conceptual/iphone_development/128-Managing_Devices/devices.html</a></li>
				</ul>
				<p><!-- Amaozn --></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=333333&#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=4798022322" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/02/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e5%ae%9f%e6%a9%9f%e3%83%86%e3%82%b9%e3%83%88%e6%89%8b%e9%a0%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone キャプチャの取り方、Macへの画像の転送方法。</title>
		<link>http://splitchin.com/tech/2010/01/31/iphone-%e3%82%ad%e3%83%a3%e3%83%97%e3%83%81%e3%83%a3%e3%81%ae%e5%8f%96%e3%82%8a%e6%96%b9%e3%80%81mac%e3%81%b8%e3%81%ae%e7%94%bb%e5%83%8f%e3%81%ae%e8%bb%a2%e9%80%81%e6%96%b9%e6%b3%95%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/31/iphone-%e3%82%ad%e3%83%a3%e3%83%97%e3%83%81%e3%83%a3%e3%81%ae%e5%8f%96%e3%82%8a%e6%96%b9%e3%80%81mac%e3%81%b8%e3%81%ae%e7%94%bb%e5%83%8f%e3%81%ae%e8%bb%a2%e9%80%81%e6%96%b9%e6%b3%95%e3%80%82/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 14:14:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=820</guid>
		<description><![CDATA[				iPod/iPhone/ニンテンドーDS ドレスアップアイテム【Gizmobies】
				
]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLQQW+2T7R5U+1JRI+61Z82" target="_blank">iPod/iPhone/ニンテンドーDS ドレスアップアイテム【Gizmobies】</a></p>
				<p><img border="0" width="1" height="1" src="http://www17.a8.net/0.gif?a8mat=1NLQQW+2T7R5U+1JRI+61Z82" alt=""<br />
				<img class="alignnone size-full wp-image-823" title="iPhoneCapture" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneCapture.png" alt="iPhoneキャプチャ" width="220" height="320" /></p>
				<h3>1. iPhoneでのキャプチャ取得方法</h3>
				<p>上記の図のように、「スリープボタン」＋「ホームボタン（□）」を同時に押します。写真を撮る時の音と白い画面がし、写真フォルダに格納されます。</p>
				<h3>2. Macでの写真の同期方法</h3>
				<p>USBケーブルで,iPhoneを接続して、Macで「iPhoto」を起動します。左メニューに、iPhoneが表示されているので、選択し、画像を読み込みます。
				</p>
				<h3>3.読み込んだ画像</h3>
				<p>フォルダ「ピクチャ」-「iPhoto Library」に画像が読み込まれています。解像度は、270 × 360ピクセルと、少し大きめです</p>
				<p><!-- /Amazon area --></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=333333&#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=B002DGSMTA" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/31/iphone-%e3%82%ad%e3%83%a3%e3%83%97%e3%83%81%e3%83%a3%e3%81%ae%e5%8f%96%e3%82%8a%e6%96%b9%e3%80%81mac%e3%81%b8%e3%81%ae%e7%94%bb%e5%83%8f%e3%81%ae%e8%bb%a2%e9%80%81%e6%96%b9%e6%b3%95%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhoneステンシル</title>
		<link>http://splitchin.com/tech/2010/01/22/iphone%e3%82%b9%e3%83%86%e3%83%b3%e3%82%b7%e3%83%ab/</link>
		<comments>http://splitchin.com/tech/2010/01/22/iphone%e3%82%b9%e3%83%86%e3%83%b3%e3%82%b7%e3%83%ab/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 15:45:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[UI設計]]></category>
		<category><![CDATA[ステンシル]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=807</guid>
		<description><![CDATA[				秋葉館オンラインショップ
				
				
				iPhone Stencil
				スマートフォン設計用に、ステンシルを探してたら、リアルステンシルに行き当たりました。簡単に言うと、iPhone UI用の [...]]]></description>
			<content:encoded><![CDATA[				<p><A HREF="http://px.a8.net/svt/ejp?a8mat=1NLQR5+AV5URM+BEK+5ZU2A" target="_blank">秋葉館オンラインショップ</A><br />
				<img border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=1NLQR5+AV5URM+BEK+5ZU2A" alt=""></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/iphone-stncil.png" alt="iPhoneステンシル" title="iphone-stncil" width="320" height="222" class="alignnone size-full wp-image-808" /></p>
				<p><a href="http://www.act2.com/products/iphone-stencil.html" target="new">iPhone Stencil</a></p>
				<p>スマートフォン設計用に、ステンシルを探してたら、リアルステンシルに行き当たりました。簡単に言うと、iPhone UI用の定規。価格は1,980円。</p>
				<p>米Design Commission社がデザインワークのために製作したiPhoneステンシル。<br />
				iPhoneアプリケーションのさまざまな企画やプロトタイプアイディア、<br />
				U画面遷移や画面デザインのUI設計のペーパーモック作成などに役立ちますね！</p>
				<p>よし、これは明日、経費で買ってもらうぞ！・・・落ちるわけないですね！
				</p>
				<p><!-- amazon area --></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=333333&#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=B001C3KY3W" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/22/iphone%e3%82%b9%e3%83%86%e3%83%b3%e3%82%b7%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhoneサイトに、AdMob広告を入れる。</title>
		<link>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 15:20:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[AdMob]]></category>
		<category><![CDATA[WPTouch]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=677</guid>
		<description><![CDATA[				互換インクならこちら
				
				
				昨年、Googleが7億5千万ドルでM&#038;AしたAdMob社ですが、
				Androidのインプレッション数は、2倍になったそうです(2009/01/ [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLRJC+3F8SJM+20QC+644DU" target="_blank">互換インクならこちら</a><br />
				<img border="0" width="1" height="1" src="http://www11.a8.net/0.gif?a8mat=1NLRJC+3F8SJM+20QC+644DU" alt=""></p>
				<p>
				昨年、Googleが7億5千万ドルでM&#038;AしたAdMob社ですが、<br />
				Androidのインプレッション数は、2倍になったそうです(2009/01/15)<br />
				<a href="http://jp.techcrunch.com/tag/admob/" target="new">http://jp.techcrunch.com/tag/admob/</a></p>
				<p>iPhoneアプリだけでなく、webにも対応してるとのことなので、<br />
				<a href="http://www.ideaxidea.com/archives/2009/11/admob_on_iphone_blog.html" target="new">IDEA*IDEA</a>さんの記事を参考にさせて頂きながら、<br />
				Webサイトに入れてみました。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/admob.png" alt="AdMob" title="admob" width="200" height="300" class="alignright size-full wp-image-713" /></p>
				<h4>AdMobに、登録します。</h4>
				<p><a href="http://jp.admob.com/" target="new">AdMobサイト</a>に行き、<br />
				「今すぐスタート」ボタンを押します。</p>
				<p>登録情報を入力します。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-regist.png" alt="AdMob登録" title="AdMob-regist" width="320" height="300" class="alignright size-full wp-image-678" /></p>
				<p>登録メールに、認証メールが送信されるので、メールを開いて、URLをクリックし、登録を完了させます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/adMob-regconp.png" alt="AdMob登録完了" title="adMob-regconp" width="320" height="186" class="alignright size-full wp-image-679" /></p>
				<h4>サイトを追加する</h4>
				<p>「サイト及びアプリケーション」ー「サイト/アプリケーションの追加」を選択します。</p>
				<p>「サイトまたはアプリケーション タイプの選択」から「iPhone用サイト」を選択します。
				</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-site.png" alt="AdMobサイトタイプ" title="AdMob-site" width="320" height="291" class="alignright size-full wp-image-680" /></p>
				<p>広告を貼るサイトの情報を入力します。広告の色なども選択できます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/Admob-siteform.png" alt="AdMobサイト情報" title="Admob-siteform" width="320" height="292" class="alignright size-full wp-image-681" /></p>
				<p>次に進むと、広告のJSコードが表示されます。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/01/AdMob-code.png" alt="AdMob広告コード" title="AdMob-code" width="320" height="189" class="alignright size-full wp-image-685" /></p>
				<p>広告コードのサンプル</p>
				<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
var admob_vars = {
 pubid: '*******', // publisher id
 bgcolor: '333333', // background color (hex)
 text: 'eeeeee', // font-color (hex)
 test: true// test mode, set to false if non-test mode
};
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://mm.admob.com/static/iphone/iadmob.js&quot;&gt;&lt;/script&gt;
</pre>
				<p>注意）</p>
				<pre class="brush: jscript;">
 test: false// test mode, set to false if non-test mode
</pre>
				<p>デフォルトだと、「test:true」になっていて、テストモードで課金されなくなっているので、「test:false」に変更します。</p>
				<h4>iPhoneサイトの、広告を挿入したい場所に、広告コードを埋めます.</h4>
				<p>
				wptouch/themes/default/header.phpに広告コード埋めます。</p>
				<p>次の例は、タイトルヘッダーと、Searchの間に、広告を入れた時の例です。<br />
				特に、どこに埋めても良いようなので、入れたい位置にいれてください。
				</p>
				<pre class="brush: php;">
	&lt;/div&gt;
&lt;/div&gt;
&lt;!-- AdMob --&gt;
&lt;div class=&quot;admob-area&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var admob_vars = {
 pubid: 'xxxxxxxxxxx', // publisher id
 bgcolor: '333333', // background color (hex)
 text: 'eeeeee', // font-color (hex)
 test: false // test mode, set to false if non-test mode
};
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://mm.admob.com/static/iphone/iadmob.js&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;!-- /AdMob --&gt;
&lt;div id=&quot;drop-fade&quot;&gt;
	&lt;?php if (bnc_is_search_enabled()) { ?&gt;
    	&lt;a id=&quot;searchopen&quot; class=&quot;top&quot; href=&quot;#&quot; onclick=&quot;bnc_jquery_search_toggle(); return false;&quot;&gt;&lt;?php _e( 'Search', 'wptouch' ); ?&gt;&lt;/a&gt;
	&lt;?php } ?&gt;
</pre>
				<p>ついでに、style.cssも加えました。</p>
				<pre class="brush: xml;">
/* for AdMob */
admob-area {
        width: 100%;
	height: 48px;
	display:block;
}
/* end for AdMob */
</pre>
				<p>
				そして、ついでに、解析コードを、footer.phpに加えます。<br />
				PHPの場合、なぜか、最後の「?>」が抜けていて、そのまま貼ると<br />
				エラーになるので要注意。</p>
				<p>自分は、GoogleAnalyticsも使用しているので、その解析コードも挿入しました。</p>
				<p>さて、これでAdMob広告の挿入は完了です！<br />
				iPhoneから接続して確認してみてください。</p>
				<p>※wptouchプラグインをアップグレードすると、/themesファイル内も<br />
				　上書きされてしまうので、バックアップは取っておいた方が良いです。
				</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=333333&#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=4797351381" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/14/iphone%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%80%81admob%e5%ba%83%e5%91%8a%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
	</channel>
</rss>

