<?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; Object-C</title>
	<atom:link href="http://splitchin.com/tech/category/object-c/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アプリ 世界時計 &#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>NSTimeZone タイムゾーン</title>
		<link>http://splitchin.com/tech/2010/07/29/nstimezone-%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%be%e3%83%bc%e3%83%b3/</link>
		<comments>http://splitchin.com/tech/2010/07/29/nstimezone-%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%be%e3%83%bc%e3%83%b3/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 15:23:29 +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 SDK4]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>
		<category><![CDATA[NSTimeZone]]></category>
		<category><![CDATA[Objective-c]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1230</guid>
		<description><![CDATA[				NSTimeZoneのクラスメソッド
				
				timeZoneWithName:・・・タイムゾーン名でタイムゾーンを作って返します
				timeZoneWithAbbreviation:・・・省略形 [...]]]></description>
			<content:encoded><![CDATA[				<h3>NSTimeZoneのクラスメソッド</h3>
				<ul>
				<li>timeZoneWithName:・・・タイムゾーン名でタイムゾーンを作って返します</li>
				<li>timeZoneWithAbbreviation:・・・省略形からタイムゾーンを作って返します</li>
				<li>timeZoneForSecondsFromGMT:・・・グリニッジ標準時からの秒差でタイムゾーンを作って返します</li>
				</ul>
				<p>次のソースで、timeZoneWithNameの、タイムゾーン名を取得できます。</p>
				<pre class="brush: plain;">
#import &lt;CoreFoundation/CoreFoundation.h&gt;

NSString *timeZoneinfo = (NSString *)CFTimeZoneCopyKnownNames();
NSLog(@&quot;timeZoneinfo is %@&quot;, timeZoneinfo);
</pre>
				<p>例えば、</p>
				<ul>
				<li>ニューヨーク・・・“America/New_York”</li>
				<li>上海・・・“Asia/Shanghai”</li>
				<li>東京・・・“Asia/Tokyo”</li>
				<li>ロンドン・・・“Europe/London”</li>
				</ul>
				<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;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=4863540515" 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/07/29/nstimezone-%e3%82%bf%e3%82%a4%e3%83%a0%e3%82%be%e3%83%bc%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>状態通知メソッド &#8211; UIViewController</title>
		<link>http://splitchin.com/tech/2010/07/22/%e7%8a%b6%e6%85%8b%e9%80%9a%e7%9f%a5%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89-uiviewcontroller/</link>
		<comments>http://splitchin.com/tech/2010/07/22/%e7%8a%b6%e6%85%8b%e9%80%9a%e7%9f%a5%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89-uiviewcontroller/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 15:20:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1217</guid>
		<description><![CDATA[				そのまま使える iPhoneアプリプログラム
				UIViewControllerの状態に応じて呼ばれるメソッドのメモ。
				
				
				
				viewDidLoad
				UIViewCo [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4839935580?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4839935580">そのまま使える iPhoneアプリプログラム</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4839935580" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p>UIViewControllerの状態に応じて呼ばれるメソッドのメモ。</p>
				<table>
				<tbody>
				<tr>
				<th>viewDidLoad</th>
				<td>UIViewControllerが保持する、画面の基点となるUIViewがロード完了した時にコールされる。画面生成後・メモリ不足でUnloadされた後にコールされる</td>
				</tr>
				<tr>
				<th>viewWillAppear:</th>
				<td>画面が表示される度に必ずコールされる。</td>
				</tr>
				<tr>
				<th>viewDidAppear:</th>
				<td>画面が表示された後にコールされる。</td>
				</tr>
				<tr>
				<th>viewWillDisappear:</th>
				<td>画面が非表示になる直前にコールされる。次の画面が表示される前に処理すべきタイミング</td>
				</tr>
				<th>viewDidDisappear</th>
				<td>画面が非表示になった後にコールされる。</td>
				</tr>
				</tbody>
				</table>
				<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=4839935599" 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/07/22/%e7%8a%b6%e6%85%8b%e9%80%9a%e7%9f%a5%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89-uiviewcontroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cocos2d for iPhone</title>
		<link>http://splitchin.com/tech/2010/07/18/cocos2d-for-iphone/</link>
		<comments>http://splitchin.com/tech/2010/07/18/cocos2d-for-iphone/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 14:42:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cocos2d]]></category>
		<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK4]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1183</guid>
		<description><![CDATA[				iPhone これは使える!アプリ&#038;ツールガイド OS3.0&#038;3GS (SOFTBANK MOOK)
				
				■Download
				http://www.cocos2d-iph [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4797353279?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4797353279">iPhone これは使える!アプリ&#038;ツールガイド OS3.0&#038;3GS (SOFTBANK MOOK)</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4797353279" 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/2010/07/iphone-cocos.png" alt="iphone-cocos" title="iphone-cocos" width="320" height="269" class="alignleft size-full wp-image-1187" /></p>
				<p>■Download<br />
				<a href="http://www.cocos2d-iphone.org/download" target="new">http://www.cocos2d-iphone.org/download</a><br />
				「Stable version」から、Downloadします。</p>
				<p>■Wiki<br />
				<a href="http://www.cocos2d-iphone.org/wiki/doku.php/" target="new">http://www.cocos2d-iphone.org/wiki/doku.php/</a></p>
				<h3>1. サンプルを実行する</h3>
				<p>DLしてきたファイルを解凍し、「 cocos2d-iphone.xcodeproj」を、xcodeで開きます。<br />
				色々な学習用サンプルが入っています。</p>
				<p>実行するためには、「Active Target」と、「Active Executable」をセットする必要があります。「表示」→「ツールバーのカスタマイズ」→「Active Target」,「Active Executable」をツールバーに、ドラッグ＆ドロップしてセットします。</p>
				<p>例えば、エフェクトのサンプルが色々入っている「Action Test」を試します。<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/07/activetarget.png" alt="" title="" width="222" height="82" class="alignleft size-full wp-image-1196" /></p>
				<p>おじさんキャラが色々エフェクトで動く、サンプルを試せます。<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/07/iphone-cocos2dlib.png" alt="iphone cocos2d" title="" width="320" height="166" class="alignleft size-full wp-image-1198" /></p>
				<h3>2. プロジェクトテンプレートをインストールする</h3>
				<p>一から作成する場合の、Cocos2d用プロジェクトテンプレートをインストールします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/07/cocostemplate.png" alt="cocos2d-template" title="" width="320" height="121" class="alignleft size-full wp-image-1204" /></p>
				<p>・a cocos2d stand alone template<br />
				・a cocos2d + box2d template<br />
				・a cocos2d + chipmunk template</p>
				<p>ターミナルから、以下のスクリプトを実行して、テンプレートをインストールします。</p>
				<pre class="brush: plain;">
cd cocos2d-iphone
./install-templates.sh
</pre>
				<p>再インストールするときは、下記のコマンドで。</p>
				<pre class="brush: plain;">
./install-templates.sh -f
</pre>
				<p>問題なければ、プロジェクトを作成すると、<br />
				下記のように、「Hello, World」が起動します。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/07/cocoshello.png" alt="Hello World" title="" width="320" height="177" class="alignleft size-full wp-image-1209" /></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;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=486190529X" 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/07/18/cocos2d-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>box2d iPhoneアプリ</title>
		<link>http://splitchin.com/tech/2010/07/05/box2d-iphone%e3%82%a2%e3%83%97%e3%83%aa/</link>
		<comments>http://splitchin.com/tech/2010/07/05/box2d-iphone%e3%82%a2%e3%83%97%e3%83%aa/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 15:30:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[box2d]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>
		<category><![CDATA[Objective-c]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1170</guid>
		<description><![CDATA[				そのまま使える iPhoneアプリプログラム
				
				ActionScriptでは、有名な物理演算ライブラリ「Box2D」のiPhone版をダウンロードした際の履歴です。
				環境は、Mac OSX [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4839935580?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4839935580">そのまま使える iPhoneアプリプログラム</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4839935580" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/07/box2d.png" alt="box2d" title="" width="320" height="260" class="alignleft size-full wp-image-1175" /></p>
				<p>ActionScriptでは、有名な物理演算ライブラリ「Box2D」のiPhone版をダウンロードした際の履歴です。<br />
				環境は、Mac OSX10.6.3 / XCode 3.2.3 iPhone OS4 で試しました。</p>
				<p>■SCM Repositories &#8211; box2d<br />
				<a href="http://box2d.svn.sourceforge.net/viewvc/box2d/" target="new">http://box2d.svn.sourceforge.net/viewvc/box2d</a></p>
				<p><a href="http://box2d.svn.sourceforge.net/viewvc/box2d/tags/Box2D-2.0.2/" target="new">http://box2d.svn.sourceforge.net/viewvc/box2d/tags/Box2D-2.0.2/</a><br />
				「Download GNU tarball」からダウンロードします。</p>
				<p>「trunk」「tag」「branch」から、tagのサンプルでないと、そのままビルドすると、ビルドエラーが起きます。</p>
				<p>SDK4にしたので、「ターゲット」の「iPhone OS Deployment Target」を、iPhone4にします。</p>
				<p>Objective-Cでも、Flashのような物理演算ができるのは面白いですね。<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/07/box2dsample.png" alt="" title="" width="200" height="281" class="size-full wp-image-1174" /><br />
				色々なサンプルが試せます。</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;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=4862670857" 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/07/05/box2d-iphone%e3%82%a2%e3%83%97%e3%83%aa/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アプリ　UITableViewを試す。</title>
		<link>http://splitchin.com/tech/2010/03/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uitableview%e3%82%92%e8%a9%a6%e3%81%99%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/03/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uitableview%e3%82%92%e8%a9%a6%e3%81%99%e3%80%82/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 13:18:45 +0000</pubDate>
		<dc:creator>arakkyee</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[UITableView]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=888</guid>
		<description><![CDATA[				「Macを買うなら…」でおなじみの、秋葉館オンラインショップ
				もちろん話題のiPodも本体を含め関連商品充実！ 
				
				色々と大変そうなので、避けていたのですが、
				UITableVie [...]]]></description>
			<content:encoded><![CDATA[				<p>「Macを買うなら…」でおなじみの、<a href="http://px.a8.net/svt/ejp?a8mat=1NLQR5+AV5URM+BEK+5ZEMQ" target="_blank">秋葉館オンラインショップ</a><br />
				もちろん話題のiPodも本体を含め関連商品充実！ <img src="http://www12.a8.net/0.gif?a8mat=1NLQR5+AV5URM+BEK+5ZEMQ" border="0" alt="" width="1" height="1" /><br />
				<img class="alignnone size-full wp-image-889" title="TableView01" src="http://splitchin.com/tech/wp-content/uploads/2010/03/TableView01.png" alt="UITableView" width="200" height="367" /></p>
				<p>色々と大変そうなので、避けていたのですが、</p>
				<p>UITableViewの基礎を試してみました。<br />
				こちらをベースに色々カスタマイズしてみようと思います。</p>
				<ul>
				<li><a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UITableViewDataSource/tableView:cellForRowAtIndexPath:">tableView:cellForRowAtIndexPath:</a> メソッド<br />
				indexPathが指定する位置のUITableViewCellのインスタンスを返すようにする。</li>
				<li><a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UITableViewDataSource/tableView:numberOfRowsInSection:">tableView:numberOfRowsInSection:</a> メソッド<br />
				テーブルが保持するセルの数を返すようにする。</li>
				</ul>
				<p><a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html" target="new">iPhone Dev Center: UITableViewDataSource Protocol Reference</a>より</p>
				<pre class="brush: cpp;">
@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	self.title =@&quot;UITableView　聖域十二宮編&quot;;

	//Tableに表示する要素
	items_ = [[NSArray alloc] initWithObjects:
			 @&quot;１月　山羊座 - Capricornus&quot;, @&quot;２月　水瓶座 - Aquarius&quot;,@&quot;３月　魚座 - Pisces&quot;,
			 @&quot;４月　牡羊座 - Aries&quot;, @&quot;５月　牡牛座 - Taurus&quot;, @&quot;６月　双子座 - Gemini&quot;,
			 @&quot;７月　蟹座 - Cancer&quot;, @&quot;８月　獅子座 - Leo&quot;, @&quot;９月　乙女座 - Virgo&quot;,
			 @&quot;１０月 天秤座 - Libra&quot;, @&quot;１１月　蠍座 - Scorpio&quot;, @&quot;１２月　射手座 - Sagittarius&quot;,
			 nil];
}
&lt;pre&gt;//Viewのリリースに、要素の配列をリリース&lt;/pre&gt;
- (void)viewDidUnload {
 [items_ release];
}

// テーブルが持っているセルの数を返す
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
 return [items_ count];
}

// UiTableViewCellのインスタンスを返す
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

 static NSString *CellIdentifier = @&quot;Cell&quot;;

 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
 if (cell == nil) {
 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
 }

 // Configure the cell.

 cell.textLabel.text = [items_ objectAtIndex:indexPath.row];

 return cell;
}
</pre>
				<p><img class="alignnone size-full wp-image-892" src="http://splitchin.com/tech/wp-content/uploads/2010/03/TableView02.png" alt="TableView02" width="200" height="346" /></p>
				<p>セルの選択時にアクションを発生させるには、didSelectedRowAtIndexPathメソッドをオーバライドします。</p>
				<pre class="brush: cpp;">
// セルの選択をハンドリングしてアクションを発生させる
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

	NSString* message = [items_ objectAtIndex:indexPath.row];
	UIAlertView* alert = [[[UIAlertView alloc] init] autorelease];
	alert.message = message;
	[alert addButtonWithTitle:@&quot;OK&quot;];
	[alert show];
}
</pre>
				<p><!-- amazon --></p>
				<p><!-- /Amazon --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/03/14/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80uitableview%e3%82%92%e8%a9%a6%e3%81%99%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone OS のバージョン</title>
		<link>http://splitchin.com/tech/2010/02/08/iphone-os-%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3/</link>
		<comments>http://splitchin.com/tech/2010/02/08/iphone-os-%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:37:07 +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 OS]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=851</guid>
		<description><![CDATA[				iPhone これは使える!アプリ&#038;ツールガイド OS3.0&#038;3GS (SOFTBANK MOOK)
				新しいSDKでアプリ開発すると、意外とダウンロードできない人がいるので、iPhon [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4797353279?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4797353279">iPhone これは使える!アプリ&#038;ツールガイド OS3.0&#038;3GS (SOFTBANK MOOK)</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4797353279" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p>新しいSDKでアプリ開発すると、意外とダウンロードできない人がいるので、iPhone OSのおさらいをしてみました。</p>
				<h3>iPhone OS バージョン</h3>
				<table>
				<tbody>
				<tr>
				<th>バージョン 2.1</th>
				<td>2008年9月12日配布開始</td>
				<td> </td>
				</tr>
				<tr>
				<th>バージョン 2.2</th>
				<td>2008年11月21日配布開始</td>
				<td> </td>
				</tr>
				<tr>
				<th>バージョン 2.2.1</th>
				<td>2009年1月27日配布開始</td>
				<td> </td>
				</tr>
				<tr>
				<th>バージョン 3.0</th>
				<td>2009年9月9日配布開始。</td>
				<td>iPhoneからのアップデートは無料。<br />
				iPod Touchからのアップデートは1200円の有料</td>
				</tr>
				<tr>
				<th>バージョン 3.1</th>
				<td>2009年9月9日配布開始。</td>
				<td>iPhoneからのアップデートは無料。<br />
				iPod Touchからのアップデートは600円に値下げ</td>
				</tr>
				<tr>
				<th>バージョン 3.1.2</th>
				<td>2009年10月9日配布開始</td>
				<td>同上</td>
				</tr>
				<tr>
				<th>バージョン 3.1.3</th>
				<td>2010年2月3日配布開始</td>
				<td>同上</td>
				</tr>
				<tr>
				<th>バージョン 3.1.3</th>
				<td>Beta（2010/02/05現在）</td>
				<td>iPad対応</td>
				</tr>
				</tbody>
				</table>
				<h3>iPhone OS</h3>
				<p>Mac OS X v10.5開発プロジェクトから派生して開発された、iPhoneおよびiPod Touch の専用OS</p>
				<h3>SDK</h3>
				<ul>
				<li><strong>Cocoa Touch</strong><br />
				マルチタッチ機能の制御、加速度センサ、View hierarchy、言語サポート、カメラ</li>
				<li><strong>メディアコンポーネント</strong><br />
				OpenAL、オーディオと録音、ビデオフォーマットおよびイメージフォーマットのサポート、Quartz、Core Animation、OpenGL ES</li>
				<li><strong>Core Services</strong><br />
				ネットワークサポート、アドレスブック、SQLite データベース、スレッド、Core Location</li>
				<li><strong>カーネル</strong><br />
				TCP/IP、ソケット、パワーマネージメント、ファイルシステム</li>
				</ul>
				<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=4873114179" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/02/08/iphone-os-%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object-C 基礎の基礎　プロパティのメモ</title>
		<link>http://splitchin.com/tech/2010/01/21/object-c-%e5%9f%ba%e7%a4%8e%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%80%80%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%81%ae%e3%83%a1%e3%83%a2/</link>
		<comments>http://splitchin.com/tech/2010/01/21/object-c-%e5%9f%ba%e7%a4%8e%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%80%80%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%81%ae%e3%83%a1%e3%83%a2/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 15:27:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=792</guid>
		<description><![CDATA[				秋葉館オンラインショップ 
				サンプルコードに、@がいっぱいあって、
				「なんですかこれは、Mentionですか？」
				と、困惑したときのメモです。
				プロパティ・・・「クラスにアクセッサ [...]]]></description>
			<content:encoded><![CDATA[				<p><A HREF="http://px.a8.net/svt/ejp?a8mat=1NLQR5+AV5URM+BEK+5ZU2A" target="_blank">秋葉館オンラインショップ</A> <img border="0" width="1" height="1" src="http://www15.a8.net/0.gif?a8mat=1NLQR5+AV5URM+BEK+5ZU2A" alt=""></p>
				<p>サンプルコードに、@がいっぱいあって、</p>
				<p>「なんですかこれは、Mentionですか？」</p>
				<p>と、困惑したときのメモです。</p>
				<p><strong>プロパティ</strong>・・・「クラスにアクセッサメソッドを簡単に付加する」</p>
				<p>クラスが持つインスタンス変数に安全にアクセスさせるためのアクセッサメソッドを追加を、自動化してくれるのがプロパティ。</p>
				<ul>
				<li>利点：安全</li>
				<li>欠点：メソッドの呼び出しが発生するので、パフォーマンス的に不利。</li>
				</ul>
				<h4>1. プロパティの宣言</h4>
				<pre class="brush: cpp;">
@interface MyClass : NSObject
{
    NSString *value;
}
@property(copy, readwrite) NSString *value;
@end
</pre>
				<p><strong>@property (属性) 型名 プロパティ名;</strong></p>
				<pre class="brush: cpp;">
@implementation MyClass
@synthesize value;
@end
</pre>
				<p><strong>@synthesize指示子</strong>で、プロパティ名を指定すると、<br />
				アクセッサメソッドを自動的に合成。<br />
				インスタンス変数のnameのgetterとsetterを追加。</p>
				<h4>2. プロパティへのアクセス</h4>
				<pre class="brush: cpp;">
MyClass *myInstance = [[MyClass alloc] init];
myInstance.value = @&quot;New value&quot;;
NSLog(@&quot;myInstance value: %@&quot;, myInstance.value);
</pre>
				<p>
				ドット構文を使うと、構造体の要素にアクセスするときと同じパターンを使ってプロパティにアクセス。</p>
				<p>myInstance.valueは、インスタンス変数に直接アクセスしているわけではなく、アクセサリメソッドを呼び出している。メソッドを記述する手間を省いてるというもの。</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=4798119989" 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/01/21/object-c-%e5%9f%ba%e7%a4%8e%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%80%80%e3%83%97%e3%83%ad%e3%83%91%e3%83%86%e3%82%a3%e3%81%ae%e3%83%a1%e3%83%a2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhoneアプリ　アラートボックスを表示する。</title>
		<link>http://splitchin.com/tech/2010/01/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/01/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 07:13:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Object-C]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[AlertBox]]></category>
		<category><![CDATA[iPhoneアプリ]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=745</guid>
		<description><![CDATA[				安いインクをお探しですか？
				
				
				AlertBoxAppDelegate.h
				
#import &#60;UIKit/UIKit.h&#62;

@class AlertBoxViewC [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://px.a8.net/svt/ejp?a8mat=1NLRJC+3F8SJM+20QC+63OYA" target="_blank">安いインクをお探しですか？</a><br />
				<img border="0" width="1" height="1" src="http://www11.a8.net/0.gif?a8mat=1NLRJC+3F8SJM+20QC+63OYA" alt=""><br />
				<img class="alignnone size-full wp-image-750" title="alert" src="http://splitchin.com/tech/wp-content/uploads/2010/01/alert.png" alt="iPhone AlertBox" width="200" height="269" /></p>
				<p><strong>AlertBoxAppDelegate.h</strong></p>
				<pre class="brush: cpp;">
#import &lt;UIKit/UIKit.h&gt;

@class AlertBoxViewController;
@interface AlertBoxAppDelegate : NSObject &lt;UIApplicationDelegate&gt; {
    UIWindow *window;
	AlertBoxViewController *viewController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet AlertBoxViewController *viewController;

@end
</pre>
				<p><strong>AlertBoxViewController.h</strong></p>
				<pre class="brush: cpp;">
#import &lt;UIKit/UIKit.h&gt;

@interface AlertBoxViewController : UIViewController {
}
- (IBAction) displayView:(id) sender;

@end
</pre>
				<p><strong>AlertBoxViewController.m</strong></p>
				<pre class="brush: cpp;">
//アラートボックスを表示するdisplayViewメソッド
-(IBAction) displayView:(id) sender{

    UIAlertView *alert = [[UIAlertView alloc]
						  initWithTitle:@&quot;アラート画面&quot;
						  message:@&quot;ボタンを押しました&quot;
						  delegate:self
						  cancelButtonTitle:@&quot;閉じる&quot;
						  otherButtonTitles:nil];
    [alert show];
    [alert release];
}
</pre>
				<p>後は、InterfaceBuilderで、Alertを表示させるトリガーのボタンと、<br />
				File&#8217;s OwnerをCtrl＋ドラッグで結んで、「displayView」を結びます。</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=4797346809" 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/17/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80%e3%82%a2%e3%83%a9%e3%83%bc%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

