<?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>farp.blog &#187; retina display</title>
	<atom:link href="http://fredandrandall.com/blog/tag/retina-display/feed/" rel="self" type="application/rss+xml" />
	<link>http://fredandrandall.com/blog</link>
	<description>Bloggin&#039; about whatever</description>
	<lastBuildDate>Tue, 04 Nov 2014 07:15:30 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>How to use a high res application icon on the iPhone 4</title>
		<link>http://fredandrandall.com/blog/2010/11/04/how-to-use-a-high-res-application-icon-on-the-iphone-4/</link>
		<comments>http://fredandrandall.com/blog/2010/11/04/how-to-use-a-high-res-application-icon-on-the-iphone-4/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 00:15:17 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[app store submission]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[retina display]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=134</guid>
		<description><![CDATA[One of the iPhone 4&#8217;s coolest feature is the retina display. It is just so much more clear and crisp than any other screen I&#8217;ve ever seen. The clarity of the screen makes it extra important for you to use &#8230; <a href="http://fredandrandall.com/blog/2010/11/04/how-to-use-a-high-res-application-icon-on-the-iphone-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://fredandrandall.com/blog/wp-content/uploads/2010/11/hiresiconblogpost.png"><img class="alignleft size-full wp-image-139" title="hiresiconblogpost" src="http://fredandrandall.com/blog/wp-content/uploads/2010/11/hiresiconblogpost.png" alt="" width="253" height="250" /></a>One of the iPhone 4&#8217;s coolest feature is the retina display. It is just so much more clear and crisp than any other screen I&#8217;ve ever seen. The clarity of the screen makes it extra important for you to use a high res icon for your app. Doing that is a little trickier than I expected.</p>
<p>If you saw my earlier <a href="http://fredandrandall.com/blog/2010/10/29/hi-res-icon-issues/">post</a> on how to use high res images in your app, you might expect the app icon to be the same. Unfortunately it isn&#8217;t, at least not exactly. At first, I just put in the high res icon. That seemed fine. Everything looked good and all was well. Until I submitted it to the app store. Upon submission, I got an error saying that I needed to provide an icon that was 57&#215;57 pixels. That low resolution doesn&#8217;t look so great on the iPhone 4.</p>
<p>So I did what I did for my other images. I created a 57&#215;57 icon file called appicon.png and a 114&#215;114 icon file called appicon@2x.png thinking that it would automatically load the high res icon on the iPhone 4. This was not the case, it only loaded the low res version.</p>
<p>Here&#8217;s how I got it working.</p>
<p><span style="font-size: 13px; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px;"><span id="more-134"></span></span>There is another value in your info.plist for icons. It is CFBundleIconFiles. Apple added this because there were beginning to be a semi-ridiculous amount of icons for iPhone/iPad apps. There is the app icon and the search icon, but with the iPad and iPhone 4 you have 4 more icons you need to have since they&#8217;re all different resolutions.  It&#8217;s a problem that I think Apple could solve a little bit more elegantly.</p>
<p><a href="http://fredandrandall.com/blog/wp-content/uploads/2010/11/Screen-shot-2010-11-04-at-8.07.14-PM.png"><img class="aligncenter size-full wp-image-141" title="Screen shot 2010-11-04 at 8.07.14 PM" src="http://fredandrandall.com/blog/wp-content/uploads/2010/11/Screen-shot-2010-11-04-at-8.07.14-PM.png" alt="" width="368" height="61" /></a>So there you go, just put that into your apps info.plist instead of the default icon key and everything should be fine. Hopefully this will prevent you from having the minor headache it caused me.</p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2010/11/04/how-to-use-a-high-res-application-icon-on-the-iphone-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to take advantage of the iPhone 4 retina display</title>
		<link>http://fredandrandall.com/blog/2010/10/29/hi-res-icon-issues/</link>
		<comments>http://fredandrandall.com/blog/2010/10/29/hi-res-icon-issues/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 00:38:44 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[retina display]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=120</guid>
		<description><![CDATA[The &#8220;retina display&#8221; on the iPhone 4 is really awesome. Icons and photos are sharper than any screen I&#8217;ve ever seen. Obviously, I would want to take advantage of this in my own app. How did I go about doing &#8230; <a href="http://fredandrandall.com/blog/2010/10/29/hi-res-icon-issues/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The &#8220;retina display&#8221; on the iPhone 4 is really awesome. Icons and photos are sharper than any screen I&#8217;ve ever seen. Obviously, I would want to take advantage of this in my own app. How did I go about doing that you ask?</p>
<p>On the iPhone, one way to create UIImages is like this:</p>
<pre class="brush: objc; title: ; notranslate">

[UIImage imageNamed:@&quot;compassGreen.png&quot;];

</pre>
<p>It&#8217;s very simple and easy. Now how do you take advantage of the retina display?</p>
<p>Just make your image twice as big as the control.</p>
<p>Thats it? Yes, that is it, sort of. What if your designer doesn&#8217;t trust the cocoa touch scaling algorithm? How do you load a different icon for the older iPhones?</p>
<p><span id="more-120"></span></p>
<pre class="brush: objc; title: ; notranslate">
if( has retina display )
{
   [UIImage imageNamed:@&quot;hiResImage.png&quot;];
}
else
{
   [UIImage imageNamed:@&quot;regularResImage.png&quot;];
}
</pre>
<p>NO! Don&#8217;t do that. You could do it that way if you really wanted, but then every time you wanted to use an image you&#8217;d have to type that if statement. Also, what would you do for images in Interface Builder?</p>
<p>Luckily, Apple knows what they&#8217;re doing and added a URL naming scheme to solve this problem. Name your regular resolution image image.png and then your high resolution image will be image@2x.png. Then all of your calls will use the regular image name. So you just say [UIImage imageNamed:@&#8221;image.png&#8221;] and then it will automatically load the correct image based on your device.</p>
<p>It wasn&#8217;t all puppies and rainbows. I had a hard time getting some of my images to load correctly. I couldn&#8217;t figure it out. They looked great in Interface Builder but they wouldn&#8217;t load on my phone. It was just the hi-res versions too. It turned out that when I was saving them in Photoshop I didn&#8217;t change the image format. I just changed the file extension. This meant that even though the files <em>looked</em> like PNGs to me, they were actually PSDs. For some reason, they work just fine in Interface Builder, even though they aren&#8217;t PNGs.</p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2010/10/29/hi-res-icon-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
