<?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>de &#187; resizing</title>
	<atom:link href="http://duivesteyn.net/tag/resizing/feed/" rel="self" type="application/rss+xml" />
	<link>http://duivesteyn.net</link>
	<description></description>
	<lastBuildDate>Tue, 20 Apr 2010 22:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPhone/iPad Development &#8211; Screen Rotation Resizing</title>
		<link>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/</link>
		<comments>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 08:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iPhone SDK Tips]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphoneOS]]></category>
		<category><![CDATA[resizing]]></category>
		<category><![CDATA[rotation]]></category>

		<guid isPermaLink="false">http://duivesteyn.net/?p=483</guid>
		<description><![CDATA[There comes a time in many apps where the screen will be rotated and the view will resize to the new screen layout. This will be even more important when it comes to the iPad which recommends that the app is usable on all different orientations. On rotation, I call a method that then goes [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-484 alignright" title="FullScreenIPhone_rotation_bars" src="http://duivesteyn.net/wp-content/uploads/2010/03/FullScreenIPhone_rotation_bars.jpg" alt="" width="236" height="190" /></p>
<p>There comes a time in many apps where the screen will be rotated and the view will resize to the new screen layout. This will be even more important when it comes to the iPad which recommends that the app is usable on all different orientations.</p>
<p>On rotation, I call a method that then goes and tediously shuffles the frames of all my onscreen items for landscape, and then it needs to be done again when going back to portrait. (There should be a class out there somewhere which automates all this).</p>
<p>The important part is getting the X,Y,Width,Height data of all the frames of the objects and I have lately adapted code to generate the following:</p>
<p><code><strong> if ([[self.view subviews] count] &amp;gt; 0) { &lt;br /&gt;<br />
NSLog(@"Enumerating Subview Details\n%@",[self.view subviews]); &lt;br /&gt;<br />
} </strong></p>
<p>&lt;p&gt;What is does is print (to NSLog) a list of all the subviews in the main view. It makes getting the frame X,Y,W,H data much faster. Hope it helps!&lt;/p&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://duivesteyn.net/2010/03/03/iphoneipad-development-screen-rotation-resizing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
