<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: shouldAutorotateToInterfaceOrientation?</title>
	<atom:link href="http://blog.sallarp.com/shouldautorotatetointerfaceorientation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/</link>
	<description>Code, Code, Revolution!</description>
	<lastBuildDate>Fri, 03 Sep 2010 14:40:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dustin</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-10809</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Mon, 17 May 2010 20:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-10809</guid>
		<description>Fantastic, thanks.</description>
		<content:encoded><![CDATA[<p>Fantastic, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ray</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-9251</link>
		<dc:creator>ray</dc:creator>
		<pubDate>Wed, 07 Apr 2010 22:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-9251</guid>
		<description>cool work, thanks! one question: what about if i need UIInterfaceOrientationPortraitUpsideDown too? any hint? thanks in advance! best regards</description>
		<content:encoded><![CDATA[<p>cool work, thanks! one question: what about if i need UIInterfaceOrientationPortraitUpsideDown too? any hint? thanks in advance! best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-7779</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 25 Feb 2010 21:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-7779</guid>
		<description>Hey. Thanks for the great code!

Total n00b question for you: how do I make the images selectable/save-able? I want to make a wallpaper gallery from some of my photos.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Hey. Thanks for the great code!</p>
<p>Total n00b question for you: how do I make the images selectable/save-able? I want to make a wallpaper gallery from some of my photos.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: omar</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-7228</link>
		<dc:creator>omar</dc:creator>
		<pubDate>Mon, 25 Jan 2010 10:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-7228</guid>
		<description>hi,
is it possible put in loop the scrollview??? how to do this??

thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
is it possible put in loop the scrollview??? how to do this??</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: omar</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-7214</link>
		<dc:creator>omar</dc:creator>
		<pubDate>Sun, 24 Jan 2010 15:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-7214</guid>
		<description>hi,
i m really interested to know how to select another imageview to start. for example in the middle. please let me know.

thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
i m really interested to know how to select another imageview to start. for example in the middle. please let me know.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-6485</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 18 Dec 2009 16:20:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-6485</guid>
		<description>Thank you very much for making this code available - it&#039;s really annoying that apple don&#039;t make there picture viewer available, but this code works just as well!

I have found one small bug in it however. In some unusal circumstances, the pictures can end up in a funny position. This wasn&#039;t easy to recreate on a regular basis, but after some time spent spinning my phone round, standing on my head etc :o) I managed to recreate the problem consistently as follows:

1) Display a portrait picture (i.e a picture that fills the screen when the phone is held portrait). 
2) Then follow the next few steps all in one movement.
3) Move the phone to a position so that the screen is pointing to the ceiling.
4) Turn the phone 360 degrees in a way that after turning it 180 degrees the phone screen is pointing at the floor.
5) Tilt the phone back to its starting position (portrait).

The result of these steps is that the image is roughly a third of the size (probably the size it is displayed in landscape mode) and positioned at the top right corner of the screen.

I have managed to fix the problem by changing the following line in the ImageGallery classes receivedRotate method:

    if (interfaceOrientation != UIDeviceOrientationUnknown)
        [self deviceInterfaceOrientationChanged:interfaceOrientation];

to:

    if (interfaceOrientation != UIDeviceOrientationUnknown &amp;&amp;
        interfaceOrientation != UIDeviceOrientationFaceUp &amp;&amp; 
        interfaceOrientation != UIDeviceOrientationFaceDown)
        [self deviceInterfaceOrientationChanged:interfaceOrientation];

Hope this helps and thanks again for making the code available in the first place.

Simon</description>
		<content:encoded><![CDATA[<p>Thank you very much for making this code available &#8211; it&#8217;s really annoying that apple don&#8217;t make there picture viewer available, but this code works just as well!</p>
<p>I have found one small bug in it however. In some unusal circumstances, the pictures can end up in a funny position. This wasn&#8217;t easy to recreate on a regular basis, but after some time spent spinning my phone round, standing on my head etc <img src='http://blog.sallarp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) I managed to recreate the problem consistently as follows:</p>
<p>1) Display a portrait picture (i.e a picture that fills the screen when the phone is held portrait).<br />
2) Then follow the next few steps all in one movement.<br />
3) Move the phone to a position so that the screen is pointing to the ceiling.<br />
4) Turn the phone 360 degrees in a way that after turning it 180 degrees the phone screen is pointing at the floor.<br />
5) Tilt the phone back to its starting position (portrait).</p>
<p>The result of these steps is that the image is roughly a third of the size (probably the size it is displayed in landscape mode) and positioned at the top right corner of the screen.</p>
<p>I have managed to fix the problem by changing the following line in the ImageGallery classes receivedRotate method:</p>
<p>    if (interfaceOrientation != UIDeviceOrientationUnknown)<br />
        [self deviceInterfaceOrientationChanged:interfaceOrientation];</p>
<p>to:</p>
<p>    if (interfaceOrientation != UIDeviceOrientationUnknown &#038;&#038;<br />
        interfaceOrientation != UIDeviceOrientationFaceUp &#038;&#038;<br />
        interfaceOrientation != UIDeviceOrientationFaceDown)<br />
        [self deviceInterfaceOrientationChanged:interfaceOrientation];</p>
<p>Hope this helps and thanks again for making the code available in the first place.</p>
<p>Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-6294</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Wed, 09 Dec 2009 10:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-6294</guid>
		<description>thank you so much! I spent ages trying to figure out how to rotate just one element, I started out like you, returning no for the shouldAutoRotate but using the orientation to do a transform. But then discovered that it wouldn&#039;t fire when returning from landscape back to portrait... thank you for showing me the way to do it right.</description>
		<content:encoded><![CDATA[<p>thank you so much! I spent ages trying to figure out how to rotate just one element, I started out like you, returning no for the shouldAutoRotate but using the orientation to do a transform. But then discovered that it wouldn&#8217;t fire when returning from landscape back to portrait&#8230; thank you for showing me the way to do it right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-4570</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 14 Oct 2009 22:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-4570</guid>
		<description>Grazie mille</description>
		<content:encoded><![CDATA[<p>Grazie mille</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-4560</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Wed, 14 Oct 2009 11:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-4560</guid>
		<description>Björn Sållarp,
Thank you for posting this tutorial. I&#039;m using this example for one of my application.  I want to apply zooming. Can anyone  help what  to change in this code to allow zooming in Scrollview? 
thanks</description>
		<content:encoded><![CDATA[<p>Björn Sållarp,<br />
Thank you for posting this tutorial. I&#8217;m using this example for one of my application.  I want to apply zooming. Can anyone  help what  to change in this code to allow zooming in Scrollview?<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iPatx</title>
		<link>http://blog.sallarp.com/shouldautorotatetointerfaceorientation/comment-page-1/#comment-3631</link>
		<dc:creator>iPatx</dc:creator>
		<pubDate>Mon, 17 Aug 2009 15:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sallarp.com/?p=236#comment-3631</guid>
		<description>Thanks a lot for your how-to but I have a problem. If the iPhone is in UIInterfaceOrientationPortraitUpsideDown orientation when the gallery is started, after when I change iPhone orientation, pictures aren&#039;t at the good size.
Do you know how to solve this?

Thanks</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your how-to but I have a problem. If the iPhone is in UIInterfaceOrientationPortraitUpsideDown orientation when the gallery is started, after when I change iPhone orientation, pictures aren&#8217;t at the good size.<br />
Do you know how to solve this?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: blog.sallarp.com @ 2010-09-04 08:55:11 -->