<?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; InterfaceBuilder</title>
	<atom:link href="http://splitchin.com/tech/tag/interfacebuilder/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Sat, 04 Sep 2010 15:49:45 +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アプリ　HelloWorld　その１　画面を作成する</title>
		<link>http://splitchin.com/tech/2010/01/07/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80helloworld%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%91%e3%80%80%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b/</link>
		<comments>http://splitchin.com/tech/2010/01/07/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80helloworld%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%91%e3%80%80%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 16:12:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK 3]]></category>
		<category><![CDATA[InterfaceBuilder]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK3]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=331</guid>
		<description><![CDATA[				SDKのインストールが完了したら、とりあえず、「HelloWorld」を作成してみます。
				ドキュメントは、Apple Dev Centerの、「iPhoneアプリケーションチュートリアル」を
				参考 [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://splitchin.com/tech/2010/01/03/iphone-sdkを、snowleopardに入れる/">SDKのインストール</a>が完了したら、とりあえず、「HelloWorld」を作成してみます。<br />
				ドキュメントは、<a href="http://splitchin.com/tech/2010/01/04/iphone-sdk-ドキュメント/">Apple Dev Centerの、「iPhoneアプリケーションチュートリアル」</a>を<br />
				参考にしています。サンプルの、HelloWorldが、OS2.0用で動かなかったので、<br />
				１から作成してみました。</p>
				<h3>1. 新規プロジェクトの作成</h3>
				<p>Xcodeを起動して、「ファイル」ー「新規プロジェクトの作成」を選択します。<br />
				<img class="alignnone size-full wp-image-339" title="Xcode-File" src="http://splitchin.com/tech/wp-content/uploads/2010/01/Xcode-File1.png" alt="Xcode iPhone アプリ　新規プロジェクトの作成" width="200" height="106" /></p>
				<h4>新規プロジェクトのテンプレートを選びます。</h4>
				<p>左カラムから、「iPhone OS」 &#8211; 「Application」を選択します。</p>
				<p><img class="alignnone size-full wp-image-340" title="iPhoneNewProject" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneNewProject.png" alt="iPhoneアプリ　テンプレートの選択" width="320" height="260" /></p>
				<p>ここでは、テンプレート「Window-Based」を選択します。</p>
				<h4>テンプレートの種類</h4>
				<table>
				<tbody>
				<tr>
				<th>Navigation-Based Application</th>
				<td>複数の画面を使用して、階層的にデータを表示するアプリケーション。上にナビゲーションバーが生成されるので、深い階層を実現できます。</td>
				</tr>
				<tr>
				<th>OpenGL ES Application</th>
				<td>画像やアニメーションを表示するために、一画面全体で、OpenGL ESベースのビューを使用するアプリケーション。３Dやゲームなどに。</td>
				</tr>
				<tr>
				<th>Tab Bar Application</th>
				<td>ユーザが複数の画面から選択できるラジオインターフェイスを表示するアプリケーション。</td>
				</tr>
				<tr>
				<th>View-Based Application</th>
				<td>1つのビューを使用してユーザインターフェイスを実装しているアプリケーション。</td>
				</tr>
				<tr>
				<th>Utility Application</th>
				<td>メインの画面と、設定の画面だけを持つようなアプリケーションを作る場合に。 インフォメーションボタンを押すと、画面が裏返るアニメーションで、設定画面になります。</td>
				</tr>
				<tr>
				<th>Window-Based Application</th>
				<td>1つのアプリケーションデリゲートと1つのウインドウを含んでいます。一画面のアプリケーション用ですが、インターフェースの配置もコードで行う場合に。</td>
				</tr>
				</tbody>
				</table>
				<p>新規プロジェクト名に、「HelloWorld」と入力します。</p>
				<p><img class="alignright size-full wp-image-352" title="HelloWorldFile" src="http://splitchin.com/tech/wp-content/uploads/2010/01/HelloWorldFile.png" alt="XCode新規プロジェクト　HelloWorld" width="455" height="182" /></p>
				<p>XCodeに、新規プロジェクト、「HelloWorld」が作成されます。</p>
				<p><img class="size-full wp-image-347" title="HelloWorld-XCode" src="http://splitchin.com/tech/wp-content/uploads/2010/01/HelloWorld-XCode.png" alt="XCode iPhone HelloWorld" width="320" height="227" /></p>
				<h3>画面を作成する。</h3>
				<p>まずは、ViewパートであるUIから作成してみます。</p>
				<h4>リソースの追加をします。</h4>
				<p>[Resources]フォルダを右クリックして、「追加」→「新規ファイル作成」</p>
				<p><img class="alignright size-full wp-image-357" title="iPhoneNewResource" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhoneNewResource.png" alt="iPhone XCode New Resource" width="250" height="195" /></p>
				<p>「View XIB」を選択します</p>
				<p><img class="alignright size-full wp-image-342" title="iPhone-new-template" src="http://splitchin.com/tech/wp-content/uploads/2010/01/iPhone-new-template.png" alt="iPhone 新規テンプレート" width="320" height="259" /></p>
				<p>ひとまず、「HelloWorldView」というファイル名で作成します。</p>
				<p><img class="alignnone size-full wp-image-363" title="HelloWorldView" src="http://splitchin.com/tech/wp-content/uploads/2010/01/HelloWorldView.png" alt="iPhone HelloWorld View" width="320" height="260" /></p>
				<p>「HelloWorldView.xib」というリソースファイルが作成されているのを確認します。</p>
				<p><img class="alignnone size-full wp-image-364" title="XCodeHelloWorldViewxib" src="http://splitchin.com/tech/wp-content/uploads/2010/01/XCodeHelloWorldViewxib.png" alt="XCode XIB" width="250" height="193" /></p>
				<h4>「HelloWorldView.xib」をクリックして、UIを編集します。</h4>
				<p>「InterfaceBuilder」と呼ばれる、Viewパートを編集するツールが起動します。</p>
				<p><img class="alignnone size-medium wp-image-366" title="InterfaceBuildernew" src="http://splitchin.com/tech/wp-content/uploads/2010/01/InterfaceBuildernew-300x187.png" alt="Interface Builder 新規" width="300" height="187" /></p>
				<p>「Tool」から「Library」を選択します。</p>
				<p>「Library」ウインドゥが表示されます。</p>
				<p><img class="alignnone size-full wp-image-368" title="IB-Tool-library" src="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-Tool-library.png" alt="IB Tool-Library" width="245" height="124" /></p>
				<p>「Library」から、「Round Rect Buttonスニペットを選択し、ドラッグ＆ドロップします。縦横の大きさや、配置は調整できます。</p>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-lib-rect.png"><img class="alignnone size-full wp-image-370" title="IB-lib-rect" src="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-lib-rect.png" alt="IB Rect" width="320" height="291" /></a></p>
				<p>Round Rect Buttonをダブルクリックし、「Click」と文字を入力します。</p>
				<p><img class="alignnone size-full wp-image-390" title="IB-Button-click" src="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-Button-click.png" alt="IB-Button" width="320" height="343" /></p>
				<p>同じように、Libraryから、「Lable」を選んで、ドラッグ＆ドロップし、ダブルクリックして、「Hello, World!」と入力します。</p>
				<p><a href="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-LabelHelloWorld.png"><img class="alignnone size-full wp-image-389" title="IB-LabelHelloWorld!" src="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-LabelHelloWorld.png" alt="IB lable" width="320" height="352" /></a></p>
				<h4>属性を設定します。</h4>
				<p>メニューバーから、「Tools」→「Inspector」を選択します。<br />
				左上のスライダーのようなアイコン、「View Attribute」を選択します。</p>
				<p>ここで、フォントやカラーなど属性値を設定できます。</p>
				<p><img class="alignnone size-full wp-image-394" title="IB-Attribute" src="http://splitchin.com/tech/wp-content/uploads/2010/01/IB-Attribute2.png" alt="IB Attribute" width="320" height="367" /></p>
				<p>長くなってしまったので、次回は、View Controllerを追加して、実際の処理を追加していきます！</p>
				<p><!-- Amazon --></p>
				<div class="amazon-area"></div>
				<p><!-- /Amazon --></p>
				<p>【関連記事】</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>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/01/07/iphone%e3%82%a2%e3%83%97%e3%83%aa%e3%80%80helloworld%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%91%e3%80%80%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
