<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>RuputerFan</title>
	<atom:link href="http://sygnas.jp/feed/" rel="self" type="application/rss+xml" />
	<link>http://sygnas.jp</link>
	<description>萌え産業とFlashの覚え書きサイト</description>
	<lastBuildDate>Fri, 30 Jul 2010 04:15:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/feed/" />
		<item>
		<title>裏話・能登麻美子編を掲載しました</title>
		<link>http://sygnas.jp/2010/07/30/meiwakunotomamiko/</link>
		<comments>http://sygnas.jp/2010/07/30/meiwakunotomamiko/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:05:56 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[世界めいわく劇場]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=729</guid>
		<description><![CDATA[加納新太さんによる「世界めいわく劇場」裏話コラムを更新しました！

めいわく劇場裏話・能登麻美子編 &#8211; 世界めいわく劇場


「能登麻美子さんにあの声でののしられたい」
　と、企画プロデューサーのダダさんが急 [...]]]></description>
			<content:encoded><![CDATA[<p>加納新太さんによる「世界めいわく劇場」裏話コラムを更新しました！</p>
<ul>
<li><a href="http://clic-clac.jp/products/douwa/blog/2010/07/post-15.html">めいわく劇場裏話・能登麻美子編 &#8211; 世界めいわく劇場</a></li>
</ul>
<blockquote><p>
「能登麻美子さんにあの声でののしられたい」</p>
<p>　と、企画プロデューサーのダダさんが急に言ったときには、何事かと思いました。大丈夫か。</p>
<p>「だから能登麻美子さんを呼ぶから、そういうシナリオにしてくれ」と。
</p></blockquote>
<p>酷い言われようですが、確かにワタクシそう言いましたｗ<br />
続きはリンク先をご覧ください。</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/30/meiwakunotomamiko/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/30/meiwakunotomamiko/" />
	</item>
		<item>
		<title>こみまぷ！Mac対応しました</title>
		<link>http://sygnas.jp/2010/07/30/comimapmac/</link>
		<comments>http://sygnas.jp/2010/07/30/comimapmac/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:03:18 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[PC・デジタル]]></category>
		<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[こみまぷ！]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[便利ツール]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=725</guid>
		<description><![CDATA[




「iPadでサークルチェックデータを持ち歩こう」というコンセプトのアプリ
「こみまぷ！」をMac OSXに対応させました。
こみまぷ！コンバーター Ver1.0.2を公開しましたので、こちらでどうぞ。
http [...]]]></description>
			<content:encoded><![CDATA[<div class="pie-gallery">
<div class="pie-item">
<div class="pie-img-wrapper"><img src="http://lh6.ggpht.com/_TVHmE_WLwoo/TE5Fm8Xg3sI/AAAAAAAAHuU/PskbOXYQohc/Screenshot%202010.07.07%2022.22.15.png?imgmax=512" alt="Screenshot 2010.07.07 22.22.15.png" width="512" height="384" class="pie-img"/></div>
</div>
</div>
<p>「iPadでサークルチェックデータを持ち歩こう」というコンセプトのアプリ<br />
「こみまぷ！」をMac OSXに対応させました。</p>
<p><strong>こみまぷ！コンバーター Ver1.0.2</strong>を公開しましたので、こちらでどうぞ。<br />
<a href="http://sygnas.jp/comimap/">http://sygnas.jp/comimap/</a></p>
<p>Mac版のコミケカタROMも同じ形式のデータを保存するのかと思ったら微妙に（？）違うんですね。</p>
<p>・文字コードがUTF-8（Windowsは ShiftJIS）<br />
・ブロックのアルファベットが半角（Windowsは全角）<br />
・印刷設定がXMLで含まれている</p>
<p>などなど。</p>
<p>確かに仕様には沿っていますが、同じパッケージに収録されてるんだから<br />
同じ形式にしてくれればいいのにと思ったりｗ</p>
<p><a href="http://clic-clac.jp/products/douwa/index.html" target="_blank"><img src="http://clic-clac.jp/products/douwa/img/special/interview_cinderella_package.png" alt=""></a><br />
夏コミ新作<a href="http://clic-clac.jp/products/douwa/index.html" target="_blank">「世界めいわく劇場 スペシャル＋シンデレラ」</a>よろしくお願いします。</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/30/comimapmac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/30/comimapmac/" />
	</item>
		<item>
		<title>iPad用コミケカタログチェックビュアー「こみまぷ！」公開！</title>
		<link>http://sygnas.jp/2010/07/27/comimap/</link>
		<comments>http://sygnas.jp/2010/07/27/comimap/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:55:56 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[便利ツール]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=704</guid>
		<description><![CDATA[iPadでコミケカタログCD-ROMのチェックデータを閲覧するアプリケーション
「こみまぷ！」を公開しました！
使い方などはサポートページをご覧下さい。





》AppStore「こみまぷ！」
》「こみまぷ！」サポー [...]]]></description>
			<content:encoded><![CDATA[<p>iPadでコミケカタログCD-ROMのチェックデータを閲覧するアプリケーション<br />
「こみまぷ！」を公開しました！</p>
<p>使い方などはサポートページをご覧下さい。</p>
<div class="pie-gallery">
<div class="pie-item">
<div class="pie-img-wrapper"><img src="http://lh6.ggpht.com/_TVHmE_WLwoo/TE5Fm8Xg3sI/AAAAAAAAHuU/PskbOXYQohc/Screenshot%202010.07.07%2022.22.15.png?imgmax=400" alt="Screenshot 2010.07.07 22.22.15.png" width="400" height="300" class="pie-img"/></div>
</div>
</div>
<p><a href="http://itunes.apple.com/app/id381290590?mt=8">》AppStore「こみまぷ！」</a><br />
<a href="http://sygnas.jp/comimap/">》「こみまぷ！」サポートページ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/27/comimap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/27/comimap/" />
	</item>
		<item>
		<title>能登麻美子さん、小林ゆうさんのインタビュー掲載</title>
		<link>http://sygnas.jp/2010/07/27/interview/</link>
		<comments>http://sygnas.jp/2010/07/27/interview/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 18:42:18 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[声優]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=699</guid>
		<description><![CDATA[「世界めいわく劇場」のサイトを更新しました！
能登麻美子さん、小林ゆうさんによる「シンデレラ」アフレコインタビューです。
また、シナリオの加納新太さんによる裏話コラムも掲載。
コラムはコミケまで何回かに分けて更新していき [...]]]></description>
			<content:encoded><![CDATA[<p>「世界めいわく劇場」のサイトを更新しました！</p>
<p><a href="http://clic-clac.jp/products/douwa/special_interview_cinderella.html">能登麻美子さん、小林ゆうさんによる「シンデレラ」アフレコインタビュー</a>です。</p>
<p>また、<a href="http://clic-clac.jp/products/douwa/blog/2010/07/post-14.html">シナリオの加納新太さんによる裏話コラム</a>も掲載。<br />
コラムはコミケまで何回かに分けて更新していきます。</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/27/interview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/27/interview/" />
	</item>
		<item>
		<title>夏コミ新作「世界めいわく劇場スペシャル」試聴開始！</title>
		<link>http://sygnas.jp/2010/07/21/c78news/</link>
		<comments>http://sygnas.jp/2010/07/21/c78news/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 05:55:24 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[イベント]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[兎塚エイジ]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=692</guid>
		<description><![CDATA[
徒歩２分のコンビニに行くのに死にそうになってしまうほど
猛暑な今日この頃いかがお過ごしですか。
そんな中、やっと新作の入稿が終わりました！
といっても色校が出るまで安心は出来ないし、特典の作業もまだだし、
ポスターも作 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://clic-clac.jp/products/douwa/img/products/chinderella_chara.gif" alt="" /></p>
<p>徒歩２分のコンビニに行くのに死にそうになってしまうほど<br />
猛暑な今日この頃いかがお過ごしですか。</p>
<p>そんな中、やっと新作の入稿が終わりました！<br />
といっても色校が出るまで安心は出来ないし、特典の作業もまだだし、<br />
ポスターも作らないといけません。<br />
ヘムレンさんのホルンがある限り油断はできねぇのだ。</p>
<p>そして入稿完了のスキをみてサイトもがっつり更新しました！</p>
<h3>「シンデレラ」（能登麻美子×小林ゆう）試聴開始！</h3>
<p><a href="http://clic-clac.jp/products/douwa/product_chinderella.html" target="_blank">「シンデレラ」の紹介ページ</a>で試聴版を公開しました。<br />
能登麻美子さんと小林ゆうさんの壊れっぷりを堪能してください。<br />
全編こんな感じですｗ</p>
<h3>バナーキャンペーン開始！</h3>
<p><a href="http://clic-clac.jp/products/douwa/campaign.html" target="_blank">兎塚エイジさんの描き下ろし色紙が当たるバナーキャンペーン</a>を開始しました！<br />
今回も試聴のできるバナーのほか、いくつかの種類を用意しましたので<br />
好きなものをお使いください。（´ワ`）<br />
<script language="JavaScript" type="text/javascript" src="http://clic-clac.jp/products/douwa/banner/cinderella/musicbanner.js"></script></p>
<h3>ジャケットを公開！</h3>
<p>兎塚エイジさんによる描き下ろしジャケットを公開しました。<br />
今回はクリアケース仕様になってますので、ケースから取り出すと<br />
美麗なイラストだけを堪能できるようになっています。</p>
<p><img src="http://clic-clac.jp/products/douwa/img/products/tokuten_text.png" alt="" class="ddpng"><br />
紹介ページから画像ひっぱってきました。</p>
<h3>夏コミの頒布スペース</h3>
<p><strong>２日目　Ｚ-32a　「CLIC CLAC」</strong></p>
<p>３日目の委託もあります。<br />
<strong>シ-74a　<a href="http://gunp.jp/" target="_blank">「GUNP」</a>さん<br />
あ-59a　<a href="http://do-raku7.blog.so-net.ne.jp/" target="_blank">「DO-RAKU7」</a>さん</strong></p>
<p>よろしくお願いいたします！</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/21/c78news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/21/c78news/" />
	</item>
		<item>
		<title>UILabelの文字サイズを自動リサイズ</title>
		<link>http://sygnas.jp/2010/07/20/adjustsfontsize/</link>
		<comments>http://sygnas.jp/2010/07/20/adjustsfontsize/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 17:21:38 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[PC・デジタル]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=689</guid>
		<description><![CDATA[iPhoneプログラミングメモ。
動的に作成したUILabelの文字サイズを自動的にリサイズする方法です。
文字が表示枠からはみ出す時などに適用されます。
InterfaceBuilderでは簡単に設定できますよね。

 [...]]]></description>
			<content:encoded><![CDATA[<p>iPhoneプログラミングメモ。</p>
<p>動的に作成したUILabelの文字サイズを自動的にリサイズする方法です。<br />
文字が表示枠からはみ出す時などに適用されます。<br />
InterfaceBuilderでは簡単に設定できますよね。</p>
<pre class="brush:cpp">
label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 25);
label.font = [UIFont systemFontOfSize:20];
label.adjustsFontSizeToFitWidth = YES;
label.minimumFontSize = 14;
[self addSubview:label];
[label release];
</pre>
<p>fontプロパティで通常時の文字サイズを指定し、<br />
adjustsFontSizeToFitWidthプロパティで自動リサイズを設定。<br />
minimumFontSizeプロパティで最小フォントサイズを指定します。</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/20/adjustsfontsize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/20/adjustsfontsize/" />
	</item>
		<item>
		<title>夏コミ新作の封入特典</title>
		<link>http://sygnas.jp/2010/07/17/c88moc/</link>
		<comments>http://sygnas.jp/2010/07/17/c88moc/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 06:22:27 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[インフォメーション]]></category>
		<category><![CDATA[コミケ]]></category>
		<category><![CDATA[兎塚エイジ]]></category>
		<category><![CDATA[特典]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=679</guid>
		<description><![CDATA[めいわく劇場ブログに書きましたがこちらにも。
 一通り編集終わって見本を作ってみました！
夏コミ新作の「世界めいわく劇場スペシャル」には
兎塚エイジさんのイラスト満載のフルカラー40P小冊子が封入されます。






 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://clic-clac.jp/products/douwa/blog/">めいわく劇場ブログ</a>に書きましたがこちらにも。</p>
<p> 一通り編集終わって見本を作ってみました！<br />
夏コミ新作の<a href="http://clic-clac.jp/products/douwa/">「世界めいわく劇場スペシャル」</a>には<br />
兎塚エイジさんのイラスト満載のフルカラー40P小冊子が封入されます。</p>
<div class="pie-gallery">
<div class="pie-item">
<div class="pie-img-wrapper"><img src="http://lh5.ggpht.com/_TVHmE_WLwoo/TEFKXDX_aJI/AAAAAAAAHsk/mpl_unxnZKc/RIMG8271.jpg?imgmax=400" alt="Exif_JPEG_PICTURE" width="400" height="300" class="pie-img"/></div>
</div>
<div class="pie-item">
<div class="pie-img-wrapper"><img src="http://lh4.ggpht.com/_TVHmE_WLwoo/TEFKX4ErgeI/AAAAAAAAHsw/TdoltmmaJEM/RIMG8272.jpg?imgmax=400" alt="Exif_JPEG_PICTURE" width="400" height="300" class="pie-img"/></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/17/c88moc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/17/c88moc/" />
	</item>
		<item>
		<title>UIScrollViewで任意の位置にスクロール</title>
		<link>http://sygnas.jp/2010/07/11/uiscrollview_scroll/</link>
		<comments>http://sygnas.jp/2010/07/11/uiscrollview_scroll/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 14:49:10 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[PC・デジタル]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=674</guid>
		<description><![CDATA[iPhoneプログラミングメモ。
UIScrollViewで任意の位置にスクロールする方法。
zoomToRectメソッドで表示する範囲を指定するだけという簡単さ。

CGRect rect = CGRectMake(  [...]]]></description>
			<content:encoded><![CDATA[<p>iPhoneプログラミングメモ。<br />
UIScrollViewで任意の位置にスクロールする方法。</p>
<p>zoomToRectメソッドで表示する範囲を指定するだけという簡単さ。</p>
<pre class="brush:cpp">
CGRect rect = CGRectMake( 100,200, 400, 400 );
[scrollView zoomToRect:rect animated:YES];
</pre>
<p>しかし現在表示している範囲と上記で指定したサイズが違う場合<br />
スケールが変わってしまいます。<br />
出来る事ならスケールは変えたくないという場合がありますよね。<br />
そんな時は現在のスケールを再指定してあげます。</p>
<pre class="brush:cpp">
// 現在のスケール
float scale = scrollView.zoomScale;

// ズームスクロール
CGRect rect = CGRectMake( 100,200, 400, 400 );
[scrollView zoomToRect:rect animated:YES];

// スケールを再指定
[scrollView setZoomScale:scale];
</pre>
<p>もっと面倒かと思ったらえらい簡単でびっくりしましたｗ</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/11/uiscrollview_scroll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/11/uiscrollview_scroll/" />
	</item>
		<item>
		<title>画面の表示方向と中心座標を取得</title>
		<link>http://sygnas.jp/2010/07/07/deviceorientation/</link>
		<comments>http://sygnas.jp/2010/07/07/deviceorientation/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 10:22:38 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[PC・デジタル]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=664</guid>
		<description><![CDATA[iPhone/iPadプログラミングメモ。
縦横どちらの画面でも中心に表示される UIViewを作っていたのですが、
[[UIDevice currentDevice] orientation]
を使っていたら実機で上手 [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone/iPadプログラミングメモ。</p>
<p>縦横どちらの画面でも中心に表示される UIViewを作っていたのですが、<br />
[[UIDevice currentDevice] orientation]<br />
を使っていたら実機で上手くいかなかったのでメモしておきます。</p>
<p>まず、上手くいかなかった理由としては UIDeviceの orientationプロパティには<br />
回転方向だけでなく、画面が上向きか下向きかも存在していたからです。<br />
それぞれ UIDeviceOrientationFaceUp、UIDeviceOrientationFaceDownです。</p>
<p>orientationプロパティでは「縦画面か横画面か」ではなく、<strong>本体の向き</strong><br />
であることを覚えておく必要があります。</p>
<p>対応策として、orientationプロパティを保存しておくことにしました。</p>
<p><span id="more-664"></span></p>
<p>まずは本体の回転を検知させます。</p>
<pre class="brush:cpp">
// 回転の検知を受け取るように設定
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
UIDevice *device = [UIDevice currentDevice];

[center addObserver:self selector:@selector(orientationChanged:)
	name:UIDeviceOrientationDidChangeNotification object:device ];
[device beginGeneratingDeviceOrientationNotifications];

// 現在の方向を保存
deviceOrientation = [device orientation];

center = nil;
device = nil;
</pre>
<p>回転を検知した時に実行されるメソッドです。</p>
<pre class="brush:cpp">
-(void)orientationChanged:(NSNotification *)notification{
	// 現在の本体の方向
	UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];

	// 画面が天地方向以外なら更新
	if ( orientation != UIDeviceOrientationFaceUp &#038;&#038; orientation != UIDeviceOrientationFaceDown ) {
		deviceOrientation = orientation;

		// 回転時に実行させたいメソッドはここに記述
		hogeView.center = [self getScreenCenter];
	}
}
</pre>
<p>そして画面の中心を取得するメソッドです。</p>
<pre class="brush:cpp">
/********************************
 * 画面センターを返す
 */
-(CGPoint)getScreenCenter{
	CGRect rect = [self getScreenRect];
	return CGPointMake( rect.size.width/2, rect.size.height/2 );
}

/********************************
 * 現在の方向による画面サイズ
 */
-(CGRect)getScreenRect{
	// 画面サイズ。縦向きでも横向きでも数値は変わらない。
	int screenW = [[UIScreen mainScreen] applicationFrame].size.width;
	int screenH = [[UIScreen mainScreen] applicationFrame].size.height;

	CGRect rect;

	// 方向で縦横サイズを決める
	switch (deviceOrientation) {
		// 横
		case UIDeviceOrientationLandscapeLeft:
		case UIDeviceOrientationLandscapeRight:
			rect = CGRectMake(0, 0, screenH, screenW); break;
		// 縦
		case UIDeviceOrientationPortrait:
		case UIDeviceOrientationPortraitUpsideDown:
			rect = CGRectMake(0, 0, screenW, screenH); break;
		// 天地
		case UIDeviceOrientationFaceUp:
		case UIDeviceOrientationFaceDown:
		default:
			rect = CGRectMake(0, 0, screenW, screenH); break;
	}

	return rect;
}
</pre>
<p>おそらくもっとエレガントな方法があると思うのですが。＾＾；<br />
エレガントなやり方を御存知の方は教えてください。</p>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/07/deviceorientation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/07/deviceorientation/" />
	</item>
		<item>
		<title>メソッドを外部から渡せないの？</title>
		<link>http://sygnas.jp/2010/07/07/othertarget/</link>
		<comments>http://sygnas.jp/2010/07/07/othertarget/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 07:20:43 +0000</pubDate>
		<dc:creator>ダダ</dc:creator>
				<category><![CDATA[PC・デジタル]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://sygnas.jp/?p=657</guid>
		<description><![CDATA[UIViewでアニメーションを行った後に実行するメソッドを
外部から指定することって出来ないかなーと思ってこんなふうに書いてみました。
結果としてエラーになったんですが、メソッドを渡すことって出来ないのかなぁ。
できまし [...]]]></description>
			<content:encoded><![CDATA[<p>UIViewでアニメーションを行った後に実行するメソッドを<br />
外部から指定することって出来ないかなーと思ってこんなふうに書いてみました。</p>
<p><s>結果としてエラーになったんですが、メソッドを渡すことって出来ないのかなぁ。</s><br />
できました！　単なるタイプミスだったようです。^^;</p>
<pre class="brush:cpp">
-(void)startDialogAnimation:(id)delegateTarget action:(SEL)action{

	// アニメーション前準備
	// 画面の外にいったん出す
	CGRect frame = hogeView.frame;
	frame.origin.y = -100;
	[hogeView setFrame:frame];

	// アニメーション設定
	// 受け取ったオブジェクトとセレクターを設定してみた
	CGContextRef context = UIGraphicsGetCurrentContext();
	[UIView beginAnimations:nil context:context];
	[UIView setAnimationDelegate:delegateTarget];
	[UIView setAnimationDidStopSelector:action];
	[UIView setAnimationDuration:0.5];

	// アニメーションの完了値
	CGRect lastFrame =hogeView.frame;
	lastFrame.origin.y =300;
	[hogeView setFrame:lastFrame];

	[UIView commitAnimations]
}
</pre>
<p>呼び出すときはこんな感じ。</p>
<pre class="brush:cpp">
[dialogView startDialogAnimation:self action:@selector(hogeMethod)];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sygnas.jp/2010/07/07/othertarget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://sygnas.jp/2010/07/07/othertarget/" />
	</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->