<?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>seiji blog &#187; NSStringFromCGRect</title>
	<atom:link href="http://blog.seiji.me/tag/nsstringfromcgrect/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.seiji.me</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 03 Mar 2010 14:50:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>^NSStringFrom.* functions</title>
		<link>http://blog.seiji.me/405.html</link>
		<comments>http://blog.seiji.me/405.html#comments</comments>
		<pubDate>Thu, 25 Dec 2008 10:54:55 +0000</pubDate>
		<dc:creator>seiji</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[NSStringFromCGRect]]></category>

		<guid isPermaLink="false">http://blog.seiji.me/?p=405</guid>
		<description><![CDATA[NSStringFromから続くFunctionは非常に便利です。特にCGRect, CGPoint, CGSizeを出力したい場合も展開して出力するのは面倒です。

	

	

 NSStringFromCGRect, NSStringFromClassを使い次のように出力してみます。
// CGRect
NSLog(@"%@", NSStringFromCGRect([self.view bounds]));
// Class
NSLog(@"%@", NSStringFromClass([[[UIApplication sharedApplication] delegate] class]));

出力
2008-12-25 19:44:29.628 HelloWorld[39711:20b] {{0, 0}, {320, 460}}
2008-12-25 19:44:29.629 HelloWorld[39711:20b] HelloWorldAppDelegate
]]></description>
			<content:encoded><![CDATA[<p>NSStringFromから続くFunctionは非常に便利です。特にCGRect, CGPoint, CGSizeを出力したい場合も展開して出力するのは面倒です。</p>
<p>
	<br />
<img src="http://blog.seiji.me/wp-content/uploads/2008/12/uikit-function-reference.jpg" alt="UIKit Function Reference — デベロッパドキュメント.jpg" border="0" width="224" height="193" /><br />
	</p>
<p><span id="more-405"></span>
<p> NSStringFromCGRect, NSStringFromClassを使い次のように出力してみます。</p>
<pre><code>// CGRect
NSLog(@"%@", NSStringFromCGRect([self.view bounds]));
// Class
NSLog(@"%@", NSStringFromClass([[[UIApplication sharedApplication] delegate] class]));
</code></pre>
<h4>出力</h4>
<pre class="console"><code>2008-12-25 19:44:29.628 HelloWorld[39711:20b] {{0, 0}, {320, 460}}
2008-12-25 19:44:29.629 HelloWorld[39711:20b] HelloWorldAppDelegate</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.seiji.me/405.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
