<?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>iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips &#187; Tag: cagradientlayer</title>
	<atom:link href="http://maniacdev.com/tag/cagradientlayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://maniacdev.com</link>
	<description>ManiacDev.Com</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:07:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Create Great Looking UIButtons Quick And Easy</title>
		<link>http://maniacdev.com/2010/02/create-great-looking-uibuttons-quick-and-easy/</link>
		<comments>http://maniacdev.com/2010/02/create-great-looking-uibuttons-quick-and-easy/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 06:38:28 +0000</pubDate>
		<dc:creator>John</dc:creator>
				<category><![CDATA[iPhone SDK And iPad SDK]]></category>
		<category><![CDATA[Objective-C Programming]]></category>
		<category><![CDATA[cagradientlayer]]></category>
		<category><![CDATA[core animation]]></category>
		<category><![CDATA[layers]]></category>
		<category><![CDATA[uibutton]]></category>

		<guid isPermaLink="false">http://maniacdev.com/?p=1019</guid>
		<description><![CDATA[
<div class="twitterbutton" style="float: right; padding-left: 5px;"><a href="http://twitter.com/share?url=http://maniacdev.com/2010/02/create-great-looking-uibuttons-quick-and-easy/&amp;text=Create Great Looking UIButtons Quick And Easy&amp;via=maniacdev&amp;related=DolcePixel"><img align="right" src="http://maniacdev.com/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
If you&#8217;ve used interface builder then you&#8217;ve probably noticed that you can change the colors and the actual image used for a UIView or UIButton background.  The problem with doing this is that things end looking just a bit off.  Either the corners are squared, things are off center or the other view elements just [...]]]></description>
			<content:encoded><![CDATA[
<div class="twitterbutton" style="float: right; padding-left: 5px;"><a href="http://twitter.com/share?url=http://maniacdev.com/2010/02/create-great-looking-uibuttons-quick-and-easy/&amp;text=Create Great Looking UIButtons Quick And Easy&amp;via=maniacdev&amp;related=DolcePixel"><img align="right" src="http://maniacdev.com/wp-content/plugins//easy-twitter-button/i/buttons/en/tweetn.png" style="border: none;" alt="" /></a></div>
<p>If you&#8217;ve used interface builder then you&#8217;ve probably noticed that you can change the colors and the actual image used for a UIView or UIButton background.  The problem with doing this is that things end looking just a bit off.  Either the corners are squared, things are off center or the other view elements just end up not looking right and you wind up either giving up or changing everything.  I found this excellent tutorial from Matt Long, co-writer of the <a rel="nofollow" href="http://www.amazon.com/gp/product/1934356107?ie=UTF8&#038;tag=usefulonlinei-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1934356107" target="_blank">Core Animation book</a> on creating custom buttons and views easily that just look great.</p>
<p>By changing the layer attributes of the button is it possible to keep the rounded button look while changing the color, and using CAGradientLayer it is possible to add some great looking gradients.  You can see Matt&#8217;s tutorial for doing this here along with a nice sample application: <a href="http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/" target="_blank">Fun With UIButtons and Core Animation Layers</a></p>
<p>A useful resource for customizing the gradient effects can be found here:<br />
<a href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CAGradientLayer_class/Reference/Reference.html" target="_blank">The CAGradientLayer Class Reference</a></p>
<p>If you&#8217;d like to make gradient UITableView cells check out:<br />
<a href="http://maniacdev.com/2009/10/how-to-make-ultra-slick-gradient-uitableview-cells/" target="_blank">How To Make Ultra-Slick Gradient UITableView Cells</a></p>
<p>Hope this helps.  I like it alot better than changing the background images myself.  Please post any comments below.</p>
<p>&copy;2012 <a href="http://maniacdev.com">iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips</a>. All Rights Reserved.</p>.<div class="prli-social-buttons-bar"><a href="http://del.icio.us/post?url=http%3A%2F%2Fmaniacdev.com%2Fr9v&title=Create+Great+Looking+UIButtons+Quick+And+Easy" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/delicious_32.png" alt="Delicious" title="Delicious" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://twitter.com/home?status=RT+%40maniacdev%3A+Create+Great+Looking+UIButtons+Quick+And+Easy+http%3A%2F%2Fmaniacdev.com%2Fr9v" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/twitter_32.png" alt="Twitter" title="Twitter" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://technorati.com/faves?add=http%3A%2F%2Fmaniacdev.com%2Fr9v" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/technorati_32.png" alt="Technorati" title="Technorati" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmaniacdev.com%2Fr9v&t=Create+Great+Looking+UIButtons+Quick+And+Easy" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/facebook_32.png" alt="Facebook" title="Facebook" border="0" style="padding: 0 20px 0 0;" /></a><a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fmaniacdev.com%2Fr9v&title=Create+Great+Looking+UIButtons+Quick+And+Easy" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/linkedin_32.png" alt="LinkedIn" title="LinkedIn" border="0" style="padding: 0 20px 0 0;" /></a><a href="mailto:?subject=Create Great Looking UIButtons Quick And Easy&body=Create Great Looking UIButtons Quick And Easy%20http%3A%2F%2Fmaniacdev.com%2Fr9v" rel="nofollow" target="_blank"><img src="http://maniacdev.com/wp-content/plugins/pretty-link/images/email_32.png" alt="Email" title="Email" border="0" style="padding: 0 20px 0 0;" /></a></div>
	Tags: <a href="http://maniacdev.com/tag/cagradientlayer/" title="cagradientlayer" rel="tag" rel="nofollow">cagradientlayer</a>, <a href="http://maniacdev.com/tag/layers/" title="layers" rel="tag" rel="nofollow">layers</a>, <a href="http://maniacdev.com/tag/core-animation/" title="core animation" rel="tag" rel="nofollow">core animation</a>, <a href="http://maniacdev.com/tag/uibutton/" title="uibutton" rel="tag" rel="nofollow">uibutton</a><br />
]]></content:encoded>
			<wfw:commentRss>http://maniacdev.com/2010/02/create-great-looking-uibuttons-quick-and-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

