<?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; iOS 5</title>
	<atom:link href="http://fredandrandall.com/blog/tag/ios-5/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 change the color of UIBarButtonItem on iOS 5</title>
		<link>http://fredandrandall.com/blog/2011/10/15/how-to-change-the-color-of-uibarbuttonitem-on-ios-5/</link>
		<comments>http://fredandrandall.com/blog/2011/10/15/how-to-change-the-color-of-uibarbuttonitem-on-ios-5/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 19:45:26 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[iOS 5]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[objc]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=623</guid>
		<description><![CDATA[My most popular blog post is how to change the color of a UIBarButtonItem. It&#8217;s something that lots of people want to do, but it involved some pretty weird hacks to get it working. Now that iOS 5 is out, &#8230; <a href="http://fredandrandall.com/blog/2011/10/15/how-to-change-the-color-of-uibarbuttonitem-on-ios-5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>My <a href="http://fredandrandall.com/blog/2011/03/31/how-to-change-the-color-of-a-uibarbuttonitem/" title="How to change the color of a UIBarButtonItem">most popular blog post</a> is how to change the color of a UIBarButtonItem. It&#8217;s something that lots of people want to do, but it involved some pretty weird hacks to get it working.</p>
<p>Now that iOS 5 is out, I can talk about a better way to do it. Apple will now let you set the <code>tintColor:</code> property on the bar button item. That&#8217;s it. No more weird hacks with images or segmented controls.</p>
<p>There&#8217;s even a cool new appearance proxy that will let you change all controls from your app with a single line of code. (More about UIAppearance <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html">here</a>)</p>
<p>So lets say you want every UIBarButtonItem in your application to be blue. That&#8217;s easy just call <code>[UIBarButtonItem appearance] setTintColor:[UIColor blueColor]]</code></p>
<p>Remember, this is iOS 5 only. If you want your app to support iOS 4, you&#8217;ll have to do it <a href="http://fredandrandall.com/blog/2011/03/31/how-to-change-the-color-of-a-uibarbuttonitem/" title="How to change the color of a UIBarButtonItem">the old way</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2011/10/15/how-to-change-the-color-of-uibarbuttonitem-on-ios-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
