<?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>iphoneアプリで稼げるのか &#187; セル</title>
	<atom:link href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphone.longearth.net</link>
	<description></description>
	<lastBuildDate>Sun, 08 Aug 2010 21:05:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>【iPachi】【iSlotPro】パスコードロックのバグ修正版を申請しました</title>
		<link>http://iphone.longearth.net/2009/08/20/%e3%80%90ipachi%e3%80%91%e3%80%90islotpro%e3%80%91%e3%83%91%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%83%ad%e3%83%83%e3%82%af%e3%81%ae%e3%83%90%e3%82%b0%e4%bf%ae%e6%ad%a3%e7%89%88%e3%82%92%e7%94%b3/</link>
		<comments>http://iphone.longearth.net/2009/08/20/%e3%80%90ipachi%e3%80%91%e3%80%90islotpro%e3%80%91%e3%83%91%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%83%ad%e3%83%83%e3%82%af%e3%81%ae%e3%83%90%e3%82%b0%e4%bf%ae%e6%ad%a3%e7%89%88%e3%82%92%e7%94%b3/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 23:49:09 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[アプリ]]></category>
		<category><![CDATA[iPachi]]></category>
		<category><![CDATA[iSlot]]></category>
		<category><![CDATA[iSlot Pro]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[バグ]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=1368</guid>
		<description><![CDATA[
先日アップデートされたiSlot Pro、iPachiにパスコード設定画面でパスコードを設定せずにキャンセルボタンから画面を閉じると、設定してもいないパスコードロックが効いてしまい、アプリが使えなくなってしまう不具合が [...]]]></description>
			<content:encoded><![CDATA[<p>
先日アップデートされたiSlot Pro、iPachiにパスコード設定画面でパスコードを設定せずにキャンセルボタンから画面を閉じると、設定してもいないパスコードロックが効いてしまい、アプリが使えなくなってしまう不具合がありました。<br />
<br />
修正版を先ほどAppleへ申請しました。<br />
審査が通るまでの間、いましばらくお待ち下さい。<br />
<br />
修正版がアップデートされるまで現バージョンではパスコードロック画面からキャンセルボタンはおさないようお願いします。<br />
<br />
ご迷惑をおかけしました。</p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/ipachi/" title="iPachi" rel="tag nofollow">iPachi</a>, <a href="http://iphone.longearth.net/tag/islot/" title="iSlot" rel="tag nofollow">iSlot</a>, <a href="http://iphone.longearth.net/tag/islot-pro/" title="iSlot Pro" rel="tag nofollow">iSlot Pro</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%83%97%e3%83%aa/" title="アプリ" rel="tag nofollow">アプリ</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%90%e3%82%b0/" title="バグ" rel="tag nofollow">バグ</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2008/12/22/%e3%81%93%e3%81%ae%e3%83%96%e3%83%ad%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/" title="このブログについて (2008 年 12 月 22 日)">このブログについて</a> </li>
	<li><a href="http://iphone.longearth.net/2009/03/29/%e3%80%90%e3%83%8b%e3%82%b3%e3%83%8b%e3%82%b3%e3%80%91iphone%e3%82%a2%e3%83%97%e3%83%aa%e8%b2%a9%e4%bf%83%e7%94%a8%e3%83%87%e3%83%a2%e5%8b%95%e7%94%bb%e3%82%92%e4%bd%9c%e6%88%90%e3%81%97%e3%81%a6/" title="【ニコニコ】iPhoneアプリ販促用デモ動画を作成してみた (2009 年 3 月 29 日)">【ニコニコ】iPhoneアプリ販促用デモ動画を作成してみた</a> </li>
	<li><a href="http://iphone.longearth.net/2009/04/07/%e3%80%90uiviewcontroller%e3%80%91iphone%e3%82%92%e6%a8%aa%e5%90%91%e3%81%8d%e3%81%ab%e3%81%97%e3%81%9f%e6%99%82%e3%81%ab%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法 (2009 年 4 月 7 日)">【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法</a> </li>
	<li><a href="http://iphone.longearth.net/2009/02/26/%e3%80%90uitableview%e3%80%91grouped%e3%81%aa%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%8c%e9%87%8d%e3%81%84/" title="【UITableView】Groupedなテーブルのスクロールが重い (2009 年 2 月 26 日)">【UITableView】Groupedなテーブルのスクロールが重い</a> </li>
	<li><a href="http://iphone.longearth.net/2009/05/05/%e3%80%90iphone%e3%80%91%e4%be%a1%e6%a0%bc%e5%a4%89%e5%8b%95%e3%81%ab%e3%82%88%e3%82%8b%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89%e6%95%b0%e3%81%b8%e3%81%ae%e5%bd%b1%e9%9f%bf/" title="【iPhone】価格変動によるダウンロード数への影響 (2009 年 5 月 5 日)">【iPhone】価格変動によるダウンロード数への影響</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/08/20/%e3%80%90ipachi%e3%80%91%e3%80%90islotpro%e3%80%91%e3%83%91%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%83%ad%e3%83%83%e3%82%af%e3%81%ae%e3%83%90%e3%82%b0%e4%bf%ae%e6%ad%a3%e7%89%88%e3%82%92%e7%94%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【NSString】文字列から表示サイズを取得する方法</title>
		<link>http://iphone.longearth.net/2009/05/24/%e3%80%90nsstring%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%82%89%e8%a1%a8%e7%a4%ba%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://iphone.longearth.net/2009/05/24/%e3%80%90nsstring%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%82%89%e8%a1%a8%e7%a4%ba%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 24 May 2009 11:40:28 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[iphone開発]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[NSString]]></category>
		<category><![CDATA[objecti]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[高さ]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=779</guid>
		<description><![CDATA[
twitterFonとかBB2Cとかのつぶやきや書き込みは、内容によって表示する文字の長さが違うので、各セルはセルの高さをそれぞれ計算する必要がある。
そんな時は下のような方法で表示に必要なCGSizeが取得できるので [...]]]></description>
			<content:encoded><![CDATA[<p>
twitterFonとかBB2Cとかのつぶやきや書き込みは、内容によって表示する文字の長さが違うので、各セルはセルの高さをそれぞれ計算する必要がある。<br />
そんな時は下のような方法で表示に必要なCGSizeが取得できるので、このheightをセルの高さに使えばいい。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p779code2'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p7792"><td class="code" id="p779code2"><pre class="objective-c" style="font-family:monospace;">// 最大の表示領域CGSize。このCGSize以上は文字列長がこのサイズを超える場合はすべて表示されない
CGSize bounds = CGSizeMake(300, 10000);
&nbsp;
// 文字列描画に使用するフォント
UIFont *font = [UIFont systemFontOfSize:14];
&nbsp;
// 表示に必要なCGSize
CGSize size = [@&quot;表示する文字列&quot; sizeWithFont:font constrainedToSize:bounds lineBreakMode:UILineBreakModeTailTruncation];</pre></td></tr></table></div>

<br />
</p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/iphone/" title="iphone" rel="tag nofollow">iphone</a>, <a href="http://iphone.longearth.net/tag/nsstring/" title="NSString" rel="tag nofollow">NSString</a>, <a href="http://iphone.longearth.net/tag/objecti/" title="objecti" rel="tag nofollow">objecti</a>, <a href="http://iphone.longearth.net/tag/objective-c/" title="objective-c" rel="tag nofollow">objective-c</a>, <a href="http://iphone.longearth.net/tag/twitter/" title="twitter" rel="tag nofollow">twitter</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e9%ab%98%e3%81%95/" title="高さ" rel="tag nofollow">高さ</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2009/07/09/three20%e3%81%a8json-framework%e3%81%a7twitter%e3%81%ae%e3%82%bf%e3%82%a4%e3%83%a0%e3%83%a9%e3%82%a4%e3%83%b3%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b/" title="Three20とJSON-FrameworkでTwitterのタイムライン画面を作る (2009 年 7 月 9 日)">Three20とJSON-FrameworkでTwitterのタイムライン画面を作る</a> </li>
	<li><a href="http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/" title="【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】 (2009 年 1 月 20 日)">【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】</a> </li>
	<li><a href="http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/" title="【UITableViewCell】カスタムCellが編集中に画面外にはみ出る (2009 年 2 月 25 日)">【UITableViewCell】カスタムCellが編集中に画面外にはみ出る</a> </li>
	<li><a href="http://iphone.longearth.net/2009/08/07/%e3%80%90iphone%e3%80%91%e3%82%a2%e3%83%97%e3%83%aa%e5%86%85%e3%81%a7web%e3%82%a2%e3%83%97%e3%83%aa%e6%84%9f%e8%a6%9a%e3%81%a7%e7%94%bb%e9%9d%a2%e9%81%b7%e7%a7%bb%e3%81%99%e3%82%8b/" title="【iPhone】アプリ内でWEBアプリ感覚で画面遷移する (2009 年 8 月 7 日)">【iPhone】アプリ内でWEBアプリ感覚で画面遷移する</a> </li>
	<li><a href="http://iphone.longearth.net/2009/07/06/%e3%80%90iphone%e3%80%91%e3%80%90objective-c%e3%80%91twitter%e3%81%ab%e3%81%a4%e3%81%b6%e3%82%84%e3%81%8d%e3%82%92%e3%83%9d%e3%82%b9%e3%83%88%e3%81%99%e3%82%8b/" title="【iPhone】【Objective-C】Twitterにつぶやきをポストする (2009 年 7 月 6 日)">【iPhone】【Objective-C】Twitterにつぶやきをポストする</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/05/24/%e3%80%90nsstring%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%82%89%e8%a1%a8%e7%a4%ba%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【デザイン】iPhoneアプリ用アイコンを外注してみた</title>
		<link>http://iphone.longearth.net/2009/05/10/%e3%80%90%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%80%91iphone%e3%82%a2%e3%83%97%e3%83%aa%e7%94%a8%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e3%82%92%e5%a4%96%e6%b3%a8%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/</link>
		<comments>http://iphone.longearth.net/2009/05/10/%e3%80%90%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%80%91iphone%e3%82%a2%e3%83%97%e3%83%aa%e7%94%a8%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e3%82%92%e5%a4%96%e6%b3%a8%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/#comments</comments>
		<pubDate>Sun, 10 May 2009 09:44:00 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[iphone開発]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iTask Timer]]></category>
		<category><![CDATA[iTaskTimer]]></category>
		<category><![CDATA[アイコン]]></category>
		<category><![CDATA[アプリ]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[リリース]]></category>
		<category><![CDATA[外注]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=623</guid>
		<description><![CDATA[
僕はデザインがド素人で、アプリ作成後のアイコン作成でいつも気が重くなっていて、常日頃かっこいいアイコンをさくっと作れてしまう人がうらやましいなぁと、僕もサクサクっとやっつけてしまいたいなぁと思っていたのですが、なかなか [...]]]></description>
			<content:encoded><![CDATA[<p>
僕はデザインがド素人で、アプリ作成後のアイコン作成でいつも気が重くなっていて、常日頃かっこいいアイコンをさくっと作れてしまう人がうらやましいなぁと、僕もサクサクっとやっつけてしまいたいなぁと思っていたのですが、なかなかgimpとかをいまさら勉強する気も起きず、そんな行動も取らずのうのうとNoデザインLifeを過ごしてきたわけですが、それでもアイコン作成はiPhoneアプリ開発には必須の作業なので、うーん外注しようかな、でもどこに依頼するのがいいんだろう、相場はどのくらいなのだろうともんもんと手をこまねいていたわけです。<br />
<br />
そこで最近おもしろいサイトを見つけました。<br />
<span id="more-623"></span> <a href="http://www.lancers.jp/">Lancers &#8211; 個人に仕事を売ったり買ったり &#8211; 仕事マーケットプレイス &#8211; ロゴ制作・システム開発・ホームページ制作などをクラウドソーシング</a><br />
<br />
依頼者が○○を作ってほしい、調べてほしいなどの依頼を投げると、提案者がそれに対して提案をしてくれる。依頼の方法はコンペ方式とプロジェクト方式の２種類があって、依頼者は複数の提案の中からこれがいい！と思うものを採用して、採用者には成功報酬として依頼金額が支払われるという仕組み。<br />
<br />
依頼金額も自分で設定できるし、まどろっこしいやりとりも必要なく、依頼側は募集期間に達した時点で、満足のいくものがあれば募集終了、なければ再募集（依頼金額10%増）もできるし、キャンセル（要キャンセル料）もできるという、まさに個人にはもってこいのステキな仕組み。<br />
<br />
というわけで、早速依頼してみた。<br />
iPhoneアプリ用アイコンで作ってくださいと。<br />
3000円で依頼していいものが出てくれば儲け物程度に見ていたのですが、<br />
既に２件ほど提案がきてます。依頼開始は5/9。<br />
<a href="http://www.lancers.jp/work/detail/784">iPhoneアプリケーション用アイコン作成 | Lancers</a><br />
<br />
3000円という低価格にも関わらず、提案が来ていることにビックリです。<br />
とりあえず、募集期限終了時にもっといいアイコンが出てくることに期待中。<br />
<br />
本当だったら募集期間中の提案は非公開にしておいた方が、提案者間での情報量が平等になり、後発の提案者に先発からのバイアスがかからなくていいよね、と依頼後に気づき、非公開にしようとしたものの、募集中には非公開設定ができず、泣く泣く断念。<br />
<br />
調べてみると、非公開には5000円くらい費用がかかるようだったので、依頼金額に対してそれは微妙かなというのもあったりなかったり。<br />
<br />
提案者はどうせ作るのなら当選確率をあげて報酬をもらいたいだろうから、おそらくは提案内容を公開していて、残り募集期間がわずかで、提案件数も少なく、質も低い依頼案件に対して、当選ラインより少し上のクオリティで仕上げてくるのだろうと。<br />
<br />
だから、きっと最終日にドバっと提案がくるのかなと思ってます。<br />
<br />
そうなるとやっぱ先出しは不利でかわいそうな気がしてきますが、もう変更できないのでごめんなさい。<br />
<br />
でも、このサイトいろいろな使い方ができそう。<br />
iPhoneアプリのアイデアを1000円でくださいとか。<br />
アイデアから設計だけして、実装はぶん投げてみるとか。でもさすがに実装は割が合わないと思うからそれなりの値段じゃないとこなそうだけど。<br />
<br />
Lancers見てると会社のロゴ作ってくださいとかがけっこうある。<br />
やっぱデザインとか単発終了できるのが依頼もしやすいよなぁ。<br />
<br />
今回の依頼結果次第で今後もお世話になるかもしれないので、このサイト要チェックです。<br />
<br />
<h3>関連のあるアプリ</h3>
<div style="float:left; margin-right:10px; margin-bottom:10px">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=317782097&#038;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2009/05/icon1.png" alt="iTask Timer" title="iTask Timer" width="57" height="57" class="alignleft size-full wp-image-816" /></a><br />
</div>
<div style="float:left">
<a href="http://iphone.longearth.net/itasktimer/">iTask Timer</a> 2009/06/05 リリース<br />
仕事効率化　230円<br />
時間管理アプリ<br />
</div>
<div style="float:right">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=317782097&#038;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/app_store_badge.png" alt="app_store_badge" title="app_store_badge" width="157" height="57" class="alignnone size-full wp-image-505" /></a><br />
</div>
<div style="clear:both;"></div></p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/iphone/" title="iphone" rel="tag nofollow">iphone</a>, <a href="http://iphone.longearth.net/tag/itask-timer/" title="iTask Timer" rel="tag nofollow">iTask Timer</a>, <a href="http://iphone.longearth.net/tag/itasktimer/" title="iTaskTimer" rel="tag nofollow">iTaskTimer</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3/" title="アイコン" rel="tag nofollow">アイコン</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%83%97%e3%83%aa/" title="アプリ" rel="tag nofollow">アプリ</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/" title="デザイン" rel="tag nofollow">デザイン</a>, <a href="http://iphone.longearth.net/tag/%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/" title="リリース" rel="tag nofollow">リリース</a>, <a href="http://iphone.longearth.net/tag/%e5%a4%96%e6%b3%a8/" title="外注" rel="tag nofollow">外注</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2009/05/21/%e3%80%90%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%80%91lancers%e3%81%a7%e4%be%9d%e9%a0%bc%e3%81%97%e3%81%9f%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e7%b4%8d%e5%93%81%e3%81%97%e3%81%a6%e3%82%82%e3%82%89/" title="【デザイン】Lancersで依頼したアイコン納品してもらった (2009 年 5 月 21 日)">【デザイン】Lancersで依頼したアイコン納品してもらった</a> </li>
	<li><a href="http://iphone.longearth.net/2009/05/21/%e3%82%bf%e3%83%96%e3%83%90%e3%83%bc%e3%81%a8%e3%81%8b%e3%83%84%e3%83%bc%e3%83%ab%e3%83%90%e3%83%bc%e7%94%a8%e3%81%ae%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e8%b2%b7%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f/" title="タブバーとかツールバー用のアイコン買ってみた (2009 年 5 月 21 日)">タブバーとかツールバー用のアイコン買ってみた</a> </li>
	<li><a href="http://iphone.longearth.net/itasktimer/" title="iTaskTimer (2009 年 5 月 27 日)">iTaskTimer</a> </li>
	<li><a href="http://iphone.longearth.net/2008/12/22/%e3%81%93%e3%81%ae%e3%83%96%e3%83%ad%e3%82%b0%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/" title="このブログについて (2008 年 12 月 22 日)">このブログについて</a> </li>
	<li><a href="http://iphone.longearth.net/2009/06/23/%e3%80%90%e3%82%a2%e3%83%97%e3%83%aa%e3%80%91itasktimer%e3%81%8cappbank%e3%81%a7%e6%8e%b2%e8%bc%89%e3%81%95%e3%82%8c%e3%81%be%e3%81%97%e3%81%9f%ef%bc%81/" title="【アプリ】iTaskTimerがAppBankで掲載されました！ (2009 年 6 月 23 日)">【アプリ】iTaskTimerがAppBankで掲載されました！</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/05/10/%e3%80%90%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%80%91iphone%e3%82%a2%e3%83%97%e3%83%aa%e7%94%a8%e3%82%a2%e3%82%a4%e3%82%b3%e3%83%b3%e3%82%92%e5%a4%96%e6%b3%a8%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>【UITableView】Groupedなテーブルのスクロールが重い</title>
		<link>http://iphone.longearth.net/2009/02/26/%e3%80%90uitableview%e3%80%91grouped%e3%81%aa%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%8c%e9%87%8d%e3%81%84/</link>
		<comments>http://iphone.longearth.net/2009/02/26/%e3%80%90uitableview%e3%80%91grouped%e3%81%aa%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%8c%e9%87%8d%e3%81%84/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:33:07 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[iphone開発]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iSlot]]></category>
		<category><![CDATA[iSlot Pro]]></category>
		<category><![CDATA[objecti]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[UITableView]]></category>
		<category><![CDATA[UIViewController]]></category>
		<category><![CDATA[アプリ]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[パチスロ]]></category>
		<category><![CDATA[リリース]]></category>
		<category><![CDATA[収支]]></category>
		<category><![CDATA[対処法]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=385</guid>
		<description><![CDATA[
この件、前々から原因がわからずハマっていたのですが、暫定的な対処法がわかりました。

Groupedなテーブルというのは、テーブルのstyleがUITableViewStyleGroupedのテーブルのことで、こんな画 [...]]]></description>
			<content:encoded><![CDATA[<p>
この件、前々から原因がわからずハマっていたのですが、暫定的な対処法がわかりました。<br />
<br />
Groupedなテーブルというのは、テーブルのstyleがUITableViewStyleGroupedのテーブルのことで、こんな画面のことです。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/02/img_0020.png"><img class="alignnone size-medium wp-image-317" title="総合画面" src="http://iphone.longearth.net/wp-content/uploads/2009/02/img_0020-200x300.png" alt="総合画面" width="200" height="300" /></a><br />
<br />
このようなGroupedな画面でスクロールさせると、アニメーションがコマ落ちしているような動きになっていました。<br />
<br />
<span id="more-385"></span><br />
<br />
はじめはスクロールの際にセルの再利用が効いていないのかとか、セルの背景色が透明になっているのかとか、パフォーマンスに影響が出そうな線で調べていたのですが、特にこれといって問題はみつからず。<br />
<br />
試しにIBでstyleをplainへ変更してみたら、スクロールがスムーズになったので、Groupedなテーブルではスクロールが重くなってしまうのか、と一旦この問題放置していました。<br />
<br />
ですが、iphoneにデフォルトでインストールされている電話帳アプリの詳細画面も同じようなGroupedなテーブルで作っているように見えるので、やはり何か方法が絶対あるぞと、思いつきでIBでビューを生成していたところを、コードでビューを生成するように置き換えてみました。<br />
<br />
こんなコードです。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p385code4'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3854"><td class="code" id="p385code4"><pre class="objective-c" style="font-family:monospace;">- (void)loadView {
	CGRect frame = [[UIScreen mainScreen] applicationFrame];
&nbsp;
	UIView *view = [[UIView alloc] initWithFrame:frame];
	view.autoresizesSubviews = YES;
	self.view = view;
	[view release];
&nbsp;
	UITableView *tv = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height) style:UITableViewStyleGrouped];
&nbsp;
	tv.delegate = self;
	tv.dataSource = self;
	tv.allowsSelectionDuringEditing = YES;
	self.tableView = tv;
&nbsp;
	[self.view addSubview:tv];
	[tv release];
}</pre></td></tr></table></div>

<br />
<br />
するとスムーズなスクロールになりました。<br />
<br />
このコントローラはUIViewControllerを使っていて、ViewにUITableViewをaddするようにしています。<br />
<br />
試しに、コントローラをUITableViewControllerに変えてinitWIthStyleでGroupedを指定したところ、こちらもスムーズなスクロールになりました。<br />
<br />
ただし、loadViewでビューを初期化すると、didReceiveMemoryWarningが頻発するようになってしまいました。<br />
<br />
IBでビューを作成する場合よりも、loadViewでビューを作成する場合の方がメモリを食ってしまうのでしょうか。<br />
<br />
これまではIBで用意した１つのビューを詳細画面や集計画面などの初期化時に流用していたので、消費されるメモリが少なかったということなのだろうか。<br />
<br />
ひとまず暫定対応として、詳細画面や集計画面など画面のスクロールが必要ない画面は、IBで作成したビューでスクロールをOffにして外見上コマ落ちが発生しないようにして、スクロールが必要な画面だけをloadViewで書くようにしました。<br />
<br />
ん〜なぜIBで作るとコマ落ちするのか原因がはっきりしていないので、気持ち悪い。<br />
<br />
<h3>関連のあるアプリ</h3>
<div style="float:left; margin-right:10px; margin-bottom:10px">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307729455&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/islot_icon.png" alt="islot_icon" title="islot_icon" width="57" height="57" class="alignnone size-full wp-image-502" /></a><br />
</div>
<div style="float:left">
<a href="http://iphone.longearth.net/2009/03/14/%E3%80%90app-store%E3%80%91iphone%E3%81%A7%E6%A9%9F%E4%BC%9A%E5%89%B2%E7%AE%97%E5%87%BA%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%91%E3%83%81%E3%82%B9%E3%83%AD%E5%8F%8E%E6%94%AF%E7%AE%A1%E7%90%86/">iSlot Pro</a> 2009/03/13 リリース<br />
ファイナンス　350円<br />
パチスロ収支管理アプリ<br />
</div>
<div style="float:right">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307729455&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/app_store_badge.png" alt="app_store_badge" title="app_store_badge" width="157" height="57" class="alignnone size-full wp-image-505" /></a><br />
</div>
<div style="clear:both"></div></p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/iphone/" title="iphone" rel="tag nofollow">iphone</a>, <a href="http://iphone.longearth.net/tag/islot/" title="iSlot" rel="tag nofollow">iSlot</a>, <a href="http://iphone.longearth.net/tag/islot-pro/" title="iSlot Pro" rel="tag nofollow">iSlot Pro</a>, <a href="http://iphone.longearth.net/tag/objecti/" title="objecti" rel="tag nofollow">objecti</a>, <a href="http://iphone.longearth.net/tag/objective-c/" title="objective-c" rel="tag nofollow">objective-c</a>, <a href="http://iphone.longearth.net/tag/uitableview/" title="UITableView" rel="tag nofollow">UITableView</a>, <a href="http://iphone.longearth.net/tag/uiviewcontroller/" title="UIViewController" rel="tag nofollow">UIViewController</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%83%97%e3%83%aa/" title="アプリ" rel="tag nofollow">アプリ</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%91%e3%83%81%e3%82%b9%e3%83%ad/" title="パチスロ" rel="tag nofollow">パチスロ</a>, <a href="http://iphone.longearth.net/tag/%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/" title="リリース" rel="tag nofollow">リリース</a>, <a href="http://iphone.longearth.net/tag/%e5%8f%8e%e6%94%af/" title="収支" rel="tag nofollow">収支</a>, <a href="http://iphone.longearth.net/tag/%e5%af%be%e5%87%a6%e6%b3%95/" title="対処法" rel="tag nofollow">対処法</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2009/04/07/%e3%80%90uiviewcontroller%e3%80%91iphone%e3%82%92%e6%a8%aa%e5%90%91%e3%81%8d%e3%81%ab%e3%81%97%e3%81%9f%e6%99%82%e3%81%ab%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法 (2009 年 4 月 7 日)">【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法</a> </li>
	<li><a href="http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/" title="【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】 (2009 年 1 月 20 日)">【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】</a> </li>
	<li><a href="http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/" title="【UITableViewCell】カスタムCellが編集中に画面外にはみ出る (2009 年 2 月 25 日)">【UITableViewCell】カスタムCellが編集中に画面外にはみ出る</a> </li>
	<li><a href="http://iphone.longearth.net/2009/03/09/%e3%80%90iphone%e3%80%91%e3%83%a1%e3%83%a2%e3%83%aa%e4%b8%8d%e8%b6%b3%e6%99%82%e3%81%ae%e3%82%b7%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%83%88%e3%81%a8%e3%83%87%e3%83%90%e3%83%83%e3%82%b0/" title="【iPhone】メモリ不足時のシミュレートとデバッグ (2009 年 3 月 9 日)">【iPhone】メモリ不足時のシミュレートとデバッグ</a> </li>
	<li><a href="http://iphone.longearth.net/2009/01/19/%e3%80%90uitableview%e3%80%91%e9%81%b8%e6%8a%9e%e8%a1%8c%e3%81%8b%e3%82%89%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99/" title="【UITableView】選択行から別画面を呼び出す (2009 年 1 月 19 日)">【UITableView】選択行から別画面を呼び出す</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/02/26/%e3%80%90uitableview%e3%80%91grouped%e3%81%aa%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%8c%e9%87%8d%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【UITableViewCell】カスタムCellが編集中に画面外にはみ出る</title>
		<link>http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/</link>
		<comments>http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 21:47:16 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[iphone開発]]></category>
		<category><![CDATA[iPachi]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objecti]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[UITableView]]></category>
		<category><![CDATA[UITableViewCell]]></category>
		<category><![CDATA[アプリ]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[パチスロ]]></category>
		<category><![CDATA[リリース]]></category>
		<category><![CDATA[収支]]></category>
		<category><![CDATA[対処法]]></category>
		<category><![CDATA[高さ]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=228</guid>
		<description><![CDATA[UITableViewで編集モードに入るとセルが右へスライドしますが
その時セルが画面外へはみだしたり、かぶってしまうという問題の対処法。

結論から言うと、自作したカスタムセルクラスのlayoutSubviewsメソッドでFrameを直書きで指定していたことが原因でした。

その時のコードはこちら。]]></description>
			<content:encoded><![CDATA[<p>
UITableViewで編集モードに入るとセルが右へスライドしますが<br />
その時カスタムセルが画面外へはみだしたり、かぶってしまうという問題の対処法。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-9.png"><img class="alignnone size-medium wp-image-371" title="はみでる" src="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-9-161x300.png" alt="はみでる" width="161" height="300" /></a><br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-10.png"><img class="alignnone size-medium wp-image-373" title="かぶる" src="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-10-161x300.png" alt="かぶる" width="161" height="300" /></a><br />
<br />
結論から言うと、自作したカスタムセルクラスのlayoutSubviewsメソッドでFrameを直書きで指定していたことが原因でした。<br />
<br />
その時のコードはこちら。<br />
<br />
<span id="more-228"></span><br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p228code5'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2285"><td class="code" id="p228code5"><pre class="objective-c" style="font-family:monospace;">- (void)layoutSubviews {
	[super layoutSubviews];
	CGRect baseRect = CGRectInset(self.contentView.bounds , 10, 5);
	CGRect rect = baseRect;
&nbsp;
	rect.size.width = 140 ;
	rect.size.height = 12;
	leftUpper.frame = rect;
&nbsp;
	rect.origin.x += 10;
	rect.origin.y += 14;
	rect.size.width = 130 ;
	rect.size.height = 20;
	left.frame = rect;
&nbsp;
	rect.origin.x = 160 ;
	rect.size.width = 150 ;
	right.frame = rect;
&nbsp;
	rect.origin.y = 5;
	rect.size.height = 12;
	rightUpper.frame = rect;
&nbsp;
}</pre></td></tr></table></div>

<br />
<br />
テーブルビューの編集ボタンを押した時や、テーブルビューをスクロールさせて画面外にあるセルが画面内に表示されるタイミングでこのlayoutSubviewsが呼ばれますが、ここでセルサイズの変更に対応できないコードを書いていました。<br />
<br />
コードを見ていくと<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p228code6'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2286"><td class="code" id="p228code6"><pre class="objective-c" style="font-family:monospace;">	CGRect baseRect = CGRectInset(self.contentView.bounds , 10, 5);
	CGRect rect = baseRect;</pre></td></tr></table></div>

<br />
<br />
ここではCGRectInset(self.contentView.bounds , 10, 5);でセルのフレームからx方向に10px、y方向に5px内側の長方形にあたるFrameを取得しています。<br />
デフォルトのテーブルビューセルは(0,0, 320, 44)なのでここでは(10, 5, 300, 33)のフレームになります。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p228code7'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2287"><td class="code" id="p228code7"><pre class="objective-c" style="font-family:monospace;">	rect.size.width = 140 ;
	rect.size.height = 12;
	leftUpper.frame = rect;
&nbsp;
	rect.origin.x += 10;
	rect.origin.y += 14;
	rect.size.width = 130 ;
	rect.size.height = 20;
	left.frame = rect;</pre></td></tr></table></div>

<br />
<br />
次に取得したフレームに対してCGSizeに変更をかけたものを左上のラベルのフレームとしてセット。<br />
このフレームは(10, 5, 140, 12)になります。<br />
<br />
左のラベルにはrect.origin.x += 10で原点を10px右へずらし、rect.origin.y += 14で14px下へずらして幅、高さを指定しなおしたフレームをセット。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p228code8'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2288"><td class="code" id="p228code8"><pre class="objective-c" style="font-family:monospace;">	rect.origin.x = 160 ;
	rect.size.width = 150 ;
	right.frame = rect;
&nbsp;
	rect.origin.y = 5;
	rect.size.height = 12;
	rightUpper.frame = rect;</pre></td></tr></table></div>

<br />
<br />
問題はここです。rect.origin.x = 160; rect.size.width=150; と指定しているため、セルサイズの変更に対応できていません。<br />
変更ボタンを押した場合、セルの原点が右へずれてくるので、もし右側のラベルを画面内におさめたいなら、右側のラベルの原点をセルの原点が移動した分だけ左をずらしてやらなければなりません。<br />
<br />
最終的にはこうなりました。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p228code9'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2289"><td class="code" id="p228code9"><pre class="objective-c" style="font-family:monospace;">- (void)layoutSubviews {
	[super layoutSubviews];
	CGRect baseRect = CGRectInset(self.contentView.bounds , 10, 5);
	CGRect rect = baseRect;
&nbsp;
	rect.size.width = (baseRect.size.width*0.75 - 88) ;
	rect.size.height = 12;
	leftUpper.frame = rect;
&nbsp;
	rect.origin.x += 10;
	rect.origin.y += 14;
	rect.size.width = (baseRect.size.width - 88) ;
	rect.size.height = 20;
	left.frame = rect;
&nbsp;
	rect.origin.x = (baseRect.size.width - 78) ;
	rect.size.width = 88 ;
	right.frame = rect;
&nbsp;
	rect.origin.y = 5;
	rect.size.height = 12;
	rect.origin.x = (baseRect.size.width - 108) ;
	rect.size.width = 120;
	rightUpper.frame = rect;
}</pre></td></tr></table></div>

<br />
<br />
編集ボタンを押した場合に右ラベルが画面外にはみでないようにして、かつ、左側のラベルともかぶらないように設定する必要があるので、各ラベルのorizin.xとsize.widthを動的に変更しています。<br />
<br />
各ラベルの背景色を別々の目立つ色にして動きをみていくと設定がしやすかったです。<br />
でも正直めんどくさい。<br />
<br />
設定後はこんな感じ。<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-8.png"><img class="alignnone size-medium wp-image-376" title="はみでない" src="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-8-161x300.png" alt="はみでない" width="161" height="300" /></a><br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-11.png"><img class="alignnone size-medium wp-image-377" title="かぶらない" src="http://iphone.longearth.net/wp-content/uploads/2009/02/e38394e382afe38381e383a3-11-161x300.png" alt="かぶらない" width="161" height="300" /></a><br />
<br />
<h3>関連のあるアプリ</h3>
<div style="float:left; margin-right:10px; margin-bottom:10px">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=304074830&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/ipachi2_icon.png" alt="ipachi2_icon" title="ipachi2_icon" width="57" height="57" class="alignleft size-full wp-image-503" /></a><br />
</div>
<div style="float:left">
<a href="http://iphone.longearth.net/2009/02/10/ipachi%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/"><span style="font-size:14px;">iPachi</span></a> 2009/02/10 リリース<br />
ファイナンス　無料<br />
簡易版パチンコパチスロ収支管理アプリ<br />
</div>
<div style="float:right">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=304074830&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/app_store_badge.png" alt="app_store_badge" title="app_store_badge" width="157" height="57" class="alignnone size-full wp-image-505" /></a><br />
</div>
<div style="clear:both"></div></p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/ipachi/" title="iPachi" rel="tag nofollow">iPachi</a>, <a href="http://iphone.longearth.net/tag/iphone/" title="iphone" rel="tag nofollow">iphone</a>, <a href="http://iphone.longearth.net/tag/objecti/" title="objecti" rel="tag nofollow">objecti</a>, <a href="http://iphone.longearth.net/tag/objective-c/" title="objective-c" rel="tag nofollow">objective-c</a>, <a href="http://iphone.longearth.net/tag/uitableview/" title="UITableView" rel="tag nofollow">UITableView</a>, <a href="http://iphone.longearth.net/tag/uitableviewcell/" title="UITableViewCell" rel="tag nofollow">UITableViewCell</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%83%97%e3%83%aa/" title="アプリ" rel="tag nofollow">アプリ</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%91%e3%83%81%e3%82%b9%e3%83%ad/" title="パチスロ" rel="tag nofollow">パチスロ</a>, <a href="http://iphone.longearth.net/tag/%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/" title="リリース" rel="tag nofollow">リリース</a>, <a href="http://iphone.longearth.net/tag/%e5%8f%8e%e6%94%af/" title="収支" rel="tag nofollow">収支</a>, <a href="http://iphone.longearth.net/tag/%e5%af%be%e5%87%a6%e6%b3%95/" title="対処法" rel="tag nofollow">対処法</a>, <a href="http://iphone.longearth.net/tag/%e9%ab%98%e3%81%95/" title="高さ" rel="tag nofollow">高さ</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/" title="【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】 (2009 年 1 月 20 日)">【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】</a> </li>
	<li><a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UITableView】UITableViewに文字を表示する (2008 年 12 月 31 日)">【UITableView】UITableViewに文字を表示する</a> </li>
	<li><a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UITableView】UITableViewにリストを表示する (2008 年 12 月 31 日)">【UITableView】UITableViewにリストを表示する</a> </li>
	<li><a href="http://iphone.longearth.net/2009/02/26/%e3%80%90uitableview%e3%80%91grouped%e3%81%aa%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%81%ae%e3%82%b9%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%81%8c%e9%87%8d%e3%81%84/" title="【UITableView】Groupedなテーブルのスクロールが重い (2009 年 2 月 26 日)">【UITableView】Groupedなテーブルのスクロールが重い</a> </li>
	<li><a href="http://iphone.longearth.net/2009/01/19/%e3%80%90uitableview%e3%80%91%e9%81%b8%e6%8a%9e%e8%a1%8c%e3%81%8b%e3%82%89%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99/" title="【UITableView】選択行から別画面を呼び出す (2009 年 1 月 19 日)">【UITableView】選択行から別画面を呼び出す</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>【UITableView】UITableViewを使って詳細画面を作る-1【UITableViewDataSource】</title>
		<link>http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/</link>
		<comments>http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 14:44:26 +0000</pubDate>
		<dc:creator>daichi</dc:creator>
				<category><![CDATA[iphone開発]]></category>
		<category><![CDATA[Interface Builder]]></category>
		<category><![CDATA[iPachi]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[NSString]]></category>
		<category><![CDATA[objecti]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[UIKit]]></category>
		<category><![CDATA[UITableView]]></category>
		<category><![CDATA[UITableViewCell]]></category>
		<category><![CDATA[UITableViewDataSource]]></category>
		<category><![CDATA[UIViewController]]></category>
		<category><![CDATA[アプリ]]></category>
		<category><![CDATA[セル]]></category>
		<category><![CDATA[チュートリアル]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[パチスロ]]></category>
		<category><![CDATA[リスト]]></category>
		<category><![CDATA[リリース]]></category>
		<category><![CDATA[収支]]></category>

		<guid isPermaLink="false">http://iphone.longearth.net/?p=169</guid>
		<description><![CDATA[
前回まででUITableViewでリストを表示して、
行を選択すると別画面を表示するところまで
できました。

今回は行選択時にその行の詳細画面を表示する画面を
UITableViewを使って作ります。
学べること

 [...]]]></description>
			<content:encoded><![CDATA[<p>
前回まででUITableViewでリストを表示して、<br />
行を選択すると別画面を表示するところまで<br />
できました。<br />
<br />
今回は行選択時にその行の詳細画面を表示する画面を<br />
UITableViewを使って作ります。<br />
<h3>学べること</h3>
<ul>
	<li>コントローラ内でのデータをビューに表示する方法</li>
	<li>UITableViewに必要なもの-datasource</li>
</ul>
<span id="more-169"></span><br />
<h3>前提条件</h3>
<ul>
	<li><a href="http://iphone.longearth.net/?p=135&amp;preview=true">【UITableView】選択行から別画面を呼び出す</a>のプロジェクトの利用</li>
	<li><a href="http://iphone.longearth.net/?p=135&amp;preview=true">【UITableView】選択行から別画面を呼び出す</a>までの内容の理解</li>
</ul>
<h3>手順</h3>
<ul>
	<li>詳細画面のビュー作成</li>
	<li>詳細画面のコントローラ作成</li>
	<li>親画面から表示データを渡す</li>
	<li>ビルド</li>
</ul>
<h3>詳細画面のビュー作成</h3>
今回はサクサクいきます。<br />
前回までで真っ白なビューを作成しました。<br />
そこにUITableViewを追加します。<br />
<br />
Interface BuilderのLibraryの中からTableViewをドラッグして<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/tableviewe381aee981b8e68a9e.png"><img class="aligncenter size-medium wp-image-170" title="tableviewの選択" src="http://iphone.longearth.net/wp-content/uploads/2009/01/tableviewe381aee981b8e68a9e-127x300.png" alt="tableviewの選択" width="127" height="300" /></a><br />
<br />
viewのところまで持ってきます。<br />
Interface Builderは自動的にサイズがちょうどよい<br />
位置を微調整してくれるので、いいあんばいのところで<br />
ドラッグを離します。<br />
<br />
こんな感じになると思います。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/viewe381b8e381aetableviewe8bfbde58aa0.png"><img class="aligncenter size-medium wp-image-171" title="viewへのTableView追加" src="http://iphone.longearth.net/wp-content/uploads/2009/01/viewe381b8e381aetableviewe8bfbde58aa0-206x299.png" alt="viewへのTableView追加" width="206" height="299" /></a><br />
<br />
この時点でビルドして実行すると<br />
前回でビューとコントローラの接続が完了しているので、<br />
新画面に貼付けたTableViewが表示されるのを確認できます。<br />
<br />
ただ、まだ何も表示はされません。<br />
<br />
少し表示するデザインを詳細画面っぽく変えてみます。<br />
<br />
viewウィンドウのTable Viewを選択した後<br />
Inspectorウィンドウの一番左のタブAttributeを開き、<br />
Style項目を現在設定されているPlainからGroupedへ変更します。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/attribute-grouped.png"><img class="aligncenter size-medium wp-image-176" title="デザインをグループ形式に" src="http://iphone.longearth.net/wp-content/uploads/2009/01/attribute-grouped-116x300.png" alt="デザインをグループ形式に" width="116" height="300" /></a><br />
<br />
するとテーブルが囲まれたようなデザインへ変わります。<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/grouped-table.png"><img class="aligncenter size-medium wp-image-177" title="グループスタイルのTable View" src="http://iphone.longearth.net/wp-content/uploads/2009/01/grouped-table-206x299.png" alt="グループスタイルのTable View" width="206" height="299" /></a><br />
<br />
この時点でビルドしてもまだ表示する行数などが未設定なので<br />
背景しか表示されません。<br />
<h3>詳細画面のコントローラ作成</h3>
<h4>編集するファイル</h4>
<ul>
	<li>DetailViewController.h</li>
	<li>DetailViewController.m</li>
</ul>
次にコントローラの作り込みに入ります。<br />
<h4>ビュー上のTableViewとコントローラの紐付け</h4>
まずは先ほどビューに追加したUITableViewと<br />
コントローラを紐付けます。<br />
<br />
基本的にviewにUILableやUITextFieldといったコンポーネントを<br />
配置した場合、その内容をコントローラから制御するためには<br />
コントローラ内にビューに公開するフィールドを定義してやる<br />
必要があります。<br />
<br />
そのビューに公開するよという識別子はIBOutletです。<br />
通常のフィールド定義の前にIBOutletをつけるだけです。<br />
<br />
DetailController.hのファイルは以下のようになります。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code14'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p16914"><td class="code" id="p169code14"><pre class="objective-c" style="font-family:monospace;">#import 
&nbsp;
@interface DetailViewController : UIViewController{
	IBOutlet UITableView *myTableView;
}
&nbsp;
@property(nonatomic, retain) UITableView *myTableView;
&nbsp;
@end</pre></td></tr></table></div>

<br />
<br />
getter/setterを用意するためにDetailViewController.mにも<br />
以下の記述を追加します。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code15'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p16915"><td class="code" id="p169code15"><pre class="objective-c" style="font-family:monospace;">@synthesize myTableView;</pre></td></tr></table></div>

<br />
<br />
以上の定義でビューからIBOutlet付きのフィールド<br />
myTableViewが見えるようになります。<br />
<br />
Interface Builderに戻って、File&#8217;s Ownerオブジェクトを右クリック<br />
してみてください。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/e585ace9968be38195e3828ce3819fmytableview.png"><img class="aligncenter size-medium wp-image-185" title="公開されたmyTableView" src="http://iphone.longearth.net/wp-content/uploads/2009/01/e585ace9968be38195e3828ce3819fmytableview-300x160.png" alt="公開されたmyTableView" width="300" height="160" /></a><br />
<br />
こんな感じでmyTableViewがOutletsの中に表示されています。<br />
<br />
試しにIBOutletを外して保存してみると、<br />
表示されなくなることが分かると思います。<br />
<br />
次にこのmyTableViewをビュー上のUITableViewと紐づけます。<br />
<br />
紐付けは前回と同じように、myTableViewの右の○をビュー上の<br />
UITableViewの位置までドラッグするだけです。<br />
<br />
すると以下のように紐付けがされます。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/mytableviewe381a8e38393e383a5e383bce4b88ae381aetableviewe381a8e381aee7b490e4bb98e38191.png"><img class="aligncenter size-medium wp-image-186" title="myTableViewとビュー上のTableVIewの紐付け" src="http://iphone.longearth.net/wp-content/uploads/2009/01/mytableviewe381a8e38393e383a5e383bce4b88ae381aetableviewe381a8e381aee7b490e4bb98e38191-300x160.png" alt="myTableViewとビュー上のTableVIewの紐付け" width="300" height="160" /></a><br />
<h4>表示するTableViewの設定</h4>
ビューとの連携が済んだので<br />
詳細画面に表示する行数を指定しましょう。<br />
<br />
行数は詳細画面に何を表示するかによりますが、<br />
ここではそうですね、パチスロの収支データの詳細表示をするとして<br />
日付、機種、金額、メモの４項目を表示することにします。<br />
<br />
UITableViewに表示する行数は<a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/">【UITableView】UITableViewに文字を表示する</a>で見たように<br />
numberOfRowsInSection:メソッドで指定します。<br />
<br />
なので以下のようなコードを追加します。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code16'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p16916"><td class="code" id="p169code16"><pre class="objective-c" style="font-family:monospace;">- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
     return 4;
}</pre></td></tr></table></div>

<br />
<br />
実はこの段階ではまだ４行のテーブルは表示されません。<br />
行数が指定されていても、その行に表示するセルが未設定です。<br />
<br />
というわけでセルを表示するために<br />
– tableView:cellForRowAtIndexPath:メソッドを追加します。<br />
これも<a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/">【UITableView】UITableViewに文字を表示する</a>で出ましたね。<br />
<br />
追加するのは空のセルを表示する以下のコードです。<br />
<br />

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code17'); return false;">View Code</a> OBJECTIVE-C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p16917"><td class="code" id="p169code17"><pre class="objective-c" style="font-family:monospace;">- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
&nbsp;
    static NSString *CellIdentifier = @&quot;Cell&quot;;
&nbsp;
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
    }
&nbsp;
	// Set up the cell...
    return cell;
}</pre></td></tr></table></div>

<br />
<br />
実はこの段階でも４行のテーブルは表示されません。<br />
<br />
というのもこれらのメソッドはUITableViewDataSourceプロトコルで<br />
定義されているメソッドだからです。<br />
<br />
UITableViewでデータを表示するには<br />
UITableViewDataSourceの役目を誰かにしてもらう必要があります。<br />
その誰かというのはこのDetailViewControllerで今行おうとしているのですが、<br />
TableViewからしてみればまだ、誰がDataSource役をしてくれるのかの判断が<br />
できない状態です。<br />
<br />
というわけで例によってInterface BuilderでDataSource役を指定します。<br />
ビュー上のUITableViewを選択して右クリックすると以下のような<br />
UITableViewのOutletsが表示されます。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/tableviewe381aeoutlets.png"><img class="aligncenter size-medium wp-image-187" title="tableviewのoutlets" src="http://iphone.longearth.net/wp-content/uploads/2009/01/tableviewe381aeoutlets-300x147.png" alt="tableviewのoutlets" width="300" height="147" /></a><br />
<br />
その中のDataSource項目をDetailViewControllerのことを指しているFile&#8217;s Ownerへ紐づけます。<br />
<br />
こんなふうになるはずです。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/datasourcee381aee7b490e4bb98e38191.png"><img class="aligncenter size-medium wp-image-188" title="datasourceの紐付け" src="http://iphone.longearth.net/wp-content/uploads/2009/01/datasourcee381aee7b490e4bb98e38191-300x147.png" alt="datasourceの紐付け" width="300" height="147" /></a><br />
<br />
ここまできたらいったんビルドをしてみましょう。<br />
<br />
コード内で指定したように４行の空セルが表示されますね。<br />
<br />
<a href="http://iphone.longearth.net/wp-content/uploads/2009/01/e7a9bae381aeefbc94e8a18ce38386e383bce38396e383ab.png"><img class="aligncenter size-medium wp-image-193" title="空の４行テーブル" src="http://iphone.longearth.net/wp-content/uploads/2009/01/e7a9bae381aeefbc94e8a18ce38386e383bce38396e383ab-161x300.png" alt="空の４行テーブル" width="161" height="300" /></a><br />
<br />
ここまでで分かるように、UITableVIewでデータを表示するために最低限<br />
必要なものはDataSourceの指定と<br />
– tableView:numberOfRowsInSection:<br />
– tableView:cellForRowAtIndexPath:<br />
の２つのメソッドです。<br />
<br />
ここではTableVIewDataSourceはFile&#8217;s OwnerであるDetailViewControllerに設定していますが、<br />
当然UITableViewDataSourceプロトコルを実装したクラスなら<br />
他のクラスでも問題はありません。<br />
<br />
UITableVIewDataSourceプロトコルの詳細はやはり本家が参考になります。<br />
<a href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UITableViewDataSource">– tableView:numberOfRowsInSection:</a><br />
<br />
ちょっと長めになってきたので、ここで一旦切ります。<br />
<br />
<h3>関連のあるアプリ</h3>
<div style="float:left; margin-right:10px; margin-bottom:10px">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=304074830&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/ipachi2_icon.png" alt="ipachi2_icon" title="ipachi2_icon" width="57" height="57" class="alignleft size-full wp-image-503" /></a><br />
</div>
<div style="float:left">
<a href="http://iphone.longearth.net/2009/02/10/ipachi%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/"><span style="font-size:14px;">iPachi</span></a> 2009/02/10 リリース<br />
ファイナンス　無料<br />
簡易版パチンコパチスロ収支管理アプリ<br />
</div>
<div style="float:right">
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=304074830&amp;mt=8"><img src="http://iphone.longearth.net/wp-content/uploads/2008/12/app_store_badge.png" alt="app_store_badge" title="app_store_badge" width="157" height="57" class="alignnone size-full wp-image-505" /></a><br />
</div>
<div style="clear:both"></div></p>

	<p>タグ: <a href="http://iphone.longearth.net/tag/interface-builder/" title="Interface Builder" rel="tag nofollow">Interface Builder</a>, <a href="http://iphone.longearth.net/tag/ipachi/" title="iPachi" rel="tag nofollow">iPachi</a>, <a href="http://iphone.longearth.net/tag/iphone/" title="iphone" rel="tag nofollow">iphone</a>, <a href="http://iphone.longearth.net/tag/nsstring/" title="NSString" rel="tag nofollow">NSString</a>, <a href="http://iphone.longearth.net/tag/objecti/" title="objecti" rel="tag nofollow">objecti</a>, <a href="http://iphone.longearth.net/tag/objective-c/" title="objective-c" rel="tag nofollow">objective-c</a>, <a href="http://iphone.longearth.net/tag/uikit/" title="UIKit" rel="tag nofollow">UIKit</a>, <a href="http://iphone.longearth.net/tag/uitableview/" title="UITableView" rel="tag nofollow">UITableView</a>, <a href="http://iphone.longearth.net/tag/uitableviewcell/" title="UITableViewCell" rel="tag nofollow">UITableViewCell</a>, <a href="http://iphone.longearth.net/tag/uitableviewdatasource/" title="UITableViewDataSource" rel="tag nofollow">UITableViewDataSource</a>, <a href="http://iphone.longearth.net/tag/uiviewcontroller/" title="UIViewController" rel="tag nofollow">UIViewController</a>, <a href="http://iphone.longearth.net/tag/%e3%82%a2%e3%83%97%e3%83%aa/" title="アプリ" rel="tag nofollow">アプリ</a>, <a href="http://iphone.longearth.net/tag/%e3%82%bb%e3%83%ab/" title="セル" rel="tag nofollow">セル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab/" title="チュートリアル" rel="tag nofollow">チュートリアル</a>, <a href="http://iphone.longearth.net/tag/%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3/" title="デザイン" rel="tag nofollow">デザイン</a>, <a href="http://iphone.longearth.net/tag/%e3%83%91%e3%83%81%e3%82%b9%e3%83%ad/" title="パチスロ" rel="tag nofollow">パチスロ</a>, <a href="http://iphone.longearth.net/tag/%e3%83%aa%e3%82%b9%e3%83%88/" title="リスト" rel="tag nofollow">リスト</a>, <a href="http://iphone.longearth.net/tag/%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9/" title="リリース" rel="tag nofollow">リリース</a>, <a href="http://iphone.longearth.net/tag/%e5%8f%8e%e6%94%af/" title="収支" rel="tag nofollow">収支</a></p>

	<h4>関連する投稿</h4>
	<ul class="st-related-posts">
	<li><a href="http://iphone.longearth.net/2009/01/19/%e3%80%90uitableview%e3%80%91%e9%81%b8%e6%8a%9e%e8%a1%8c%e3%81%8b%e3%82%89%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e5%91%bc%e3%81%b3%e5%87%ba%e3%81%99/" title="【UITableView】選択行から別画面を呼び出す (2009 年 1 月 19 日)">【UITableView】選択行から別画面を呼び出す</a> </li>
	<li><a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UITableView】UITableViewにリストを表示する (2008 年 12 月 31 日)">【UITableView】UITableViewにリストを表示する</a> </li>
	<li><a href="http://iphone.longearth.net/2008/12/31/%e3%80%90uitableview%e3%80%91uitableview%e3%81%ab%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UITableView】UITableViewに文字を表示する (2008 年 12 月 31 日)">【UITableView】UITableViewに文字を表示する</a> </li>
	<li><a href="http://iphone.longearth.net/2009/02/25/%e3%80%90uitableviewcell%e3%80%91%e3%82%ab%e3%82%b9%e3%82%bf%e3%83%a0cell%e3%81%8c%e7%b7%a8%e9%9b%86%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e5%a4%96%e3%81%ab%e3%81%af%e3%81%bf%e5%87%ba%e3%82%8b/" title="【UITableViewCell】カスタムCellが編集中に画面外にはみ出る (2009 年 2 月 25 日)">【UITableViewCell】カスタムCellが編集中に画面外にはみ出る</a> </li>
	<li><a href="http://iphone.longearth.net/2009/04/07/%e3%80%90uiviewcontroller%e3%80%91iphone%e3%82%92%e6%a8%aa%e5%90%91%e3%81%8d%e3%81%ab%e3%81%97%e3%81%9f%e6%99%82%e3%81%ab%e5%88%a5%e7%94%bb%e9%9d%a2%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b/" title="【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法 (2009 年 4 月 7 日)">【UIVIewController】iPhoneを横向きにした時に別画面を表示する方法</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://iphone.longearth.net/2009/01/20/%e3%80%90uitableview%e3%80%91uitableview%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e8%a9%b3%e7%b4%b0%e7%94%bb%e9%9d%a2%e3%82%92%e4%bd%9c%e3%82%8b-1%e3%80%90uitableviewdatasource%e3%80%91/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
