<?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: Fun With UIButtons and Core Animation Layers</title>
	<atom:link href="http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/</link>
	<description>Taglines are for Windows programmers</description>
	<lastBuildDate>Mon, 26 Jul 2010 16:50:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: sfsam</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1367</link>
		<dc:creator>sfsam</dc:creator>
		<pubDate>Wed, 09 Jun 2010 07:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1367</guid>
		<description>&lt;p&gt;This is very neat, but how can you set different background colors for the different states (disabled, highlighted, etc)?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is very neat, but how can you set different background colors for the different states (disabled, highlighted, etc)?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Bynomial Code &#187; Fun with layers</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1347</link>
		<dc:creator>Bynomial Code &#187; Fun with layers</dc:creator>
		<pubDate>Sat, 08 May 2010 23:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1347</guid>
		<description>&lt;p&gt;[...] I originally learned about this stuff from this blog post. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] I originally learned about this stuff from this blog post. [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: TechnologySolutionsGroup</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1327</link>
		<dc:creator>TechnologySolutionsGroup</dc:creator>
		<pubDate>Wed, 31 Mar 2010 19:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1327</guid>
		<description>&lt;p&gt;Thanks for the great code!&lt;/p&gt;

&lt;p&gt;I however had an access violation, and had to change to the following:&lt;/p&gt;

&lt;p&gt;@property (nonatomic, retain) UIColor *_highColor;
@property (nonatomic, retain) UIColor *_lowColor;&lt;/p&gt;

&lt;p&gt;You had (assign) instead, and in &quot;drawRect&quot; the colors were no longer accessible.&lt;/p&gt;

&lt;p&gt;I had a CustomerButton on two different view controllers. The first one showed fine, but when navigating to the second one, the crash would occur.&lt;/p&gt;

&lt;p&gt;Both view controllers were in separate nib&#039;s.&lt;/p&gt;

&lt;p&gt;Thanks,
Scott&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the great code!</p>

<p>I however had an access violation, and had to change to the following:</p>

<p>@property (nonatomic, retain) UIColor *_highColor;
@property (nonatomic, retain) UIColor *_lowColor;</p>

<p>You had (assign) instead, and in &#8220;drawRect&#8221; the colors were no longer accessible.</p>

<p>I had a CustomerButton on two different view controllers. The first one showed fine, but when navigating to the second one, the crash would occur.</p>

<p>Both view controllers were in separate nib&#8217;s.</p>

<p>Thanks,
Scott</p>]]></content:encoded>
	</item>
	<item>
		<title>By: akdalim@yahoo.com</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1324</link>
		<dc:creator>akdalim@yahoo.com</dc:creator>
		<pubDate>Tue, 30 Mar 2010 12:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1324</guid>
		<description>&lt;p&gt;I got it. 
the code needs to add the lib,&lt;/p&gt;

&lt;p&gt;import&lt;/p&gt;

&lt;p&gt;(You should write this for the newbies like me :). It took a long to figure it out. I had QuartzCore and CoreGraphics framework imported, but still need the .h file.&lt;/p&gt;

&lt;p&gt;Thanks for the tutorial. its great!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I got it. 
the code needs to add the lib,</p>

<p>import</p>

<p>(You should write this for the newbies like me :). It took a long to figure it out. I had QuartzCore and CoreGraphics framework imported, but still need the .h file.</p>

<p>Thanks for the tutorial. its great!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: akdalim@yahoo.com</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1323</link>
		<dc:creator>akdalim@yahoo.com</dc:creator>
		<pubDate>Tue, 30 Mar 2010 09:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1323</guid>
		<description>&lt;p&gt;hi, 
I have tried to make rounded rectangle button, but the color is not changed and have the following warning in these lines that : no -setCornerRadius etc. method found.&lt;/p&gt;

&lt;p&gt;[[loginButton layer] setCornerRadius:8.0f];
[[loginButton layer] setMasksToBounds:YES];
[[loginButton layer] setBorderWidth:1.0f];
[[loginButton layer] setBackgroundColor: [COLOR_BUTTON_LOGIN CGColor] ];&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hi, 
I have tried to make rounded rectangle button, but the color is not changed and have the following warning in these lines that : no -setCornerRadius etc. method found.</p>

<p>[[loginButton layer] setCornerRadius:8.0f];
[[loginButton layer] setMasksToBounds:YES];
[[loginButton layer] setBorderWidth:1.0f];
[[loginButton layer] setBackgroundColor: [COLOR_BUTTON_LOGIN CGColor] ];</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Gejat: kleuren UIButtons</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1308</link>
		<dc:creator>Gejat: kleuren UIButtons</dc:creator>
		<pubDate>Thu, 25 Mar 2010 10:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1308</guid>
		<description>&lt;p&gt;[...] zijn andere oplossingen (bijvoorbeeld met &#8220;gestretchde-png-files&#8221;) en ik vond deze ook erg charmant maar uiteindelijk vind ik dit gewoon het [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] zijn andere oplossingen (bijvoorbeeld met &#8220;gestretchde-png-files&#8221;) en ik vond deze ook erg charmant maar uiteindelijk vind ik dit gewoon het [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1300</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 12 Mar 2010 16:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1300</guid>
		<description>&lt;p&gt;Nice!
I actually didn&#039;t realize this consequence of UIView being layer-based and instead wrote a tiny category that added a class-method to UIImage in order to easily generate glass-style-/gradient-buttons in code...&lt;/p&gt;

&lt;p&gt;I have to say I pretty much prefer doing it your way -- it feels much more...appropriate.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice!
I actually didn&#8217;t realize this consequence of UIView being layer-based and instead wrote a tiny category that added a class-method to UIImage in order to easily generate glass-style-/gradient-buttons in code&#8230;</p>

<p>I have to say I pretty much prefer doing it your way &#8212; it feels much more&#8230;appropriate.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: 2010-03-03 ???? iphone xml????</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1292</link>
		<dc:creator>2010-03-03 ???? iphone xml????</dc:creator>
		<pubDate>Wed, 03 Mar 2010 05:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1292</guid>
		<description>&lt;p&gt;[...] Fun With UIButtons and Core Animation Layers  [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Fun With UIButtons and Core Animation Layers  [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: JordanX</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1290</link>
		<dc:creator>JordanX</dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1290</guid>
		<description>&lt;p&gt;Great post. Adding a drop shadow would really complete this class. But as it is. Great Job!&lt;/p&gt;

&lt;p&gt;First time reader. Love the blog!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great post. Adding a drop shadow would really complete this class. But as it is. Great Job!</p>

<p>First time reader. Love the blog!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: tabqwerty</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1279</link>
		<dc:creator>tabqwerty</dc:creator>
		<pubDate>Tue, 23 Feb 2010 00:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1279</guid>
		<description>&lt;p&gt;Thanks for the tutorial. Do you have a pointer for adding a drop shadow to the buttons?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial. Do you have a pointer for adding a drop shadow to the buttons?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: [Dév iPhone] Personnaliser et animer des UIButtons avec Core Animation &#124; Romain Boulay . Ingénieur développement informatique mobile</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1271</link>
		<dc:creator>[Dév iPhone] Personnaliser et animer des UIButtons avec Core Animation &#124; Romain Boulay . Ingénieur développement informatique mobile</dc:creator>
		<pubDate>Wed, 17 Feb 2010 14:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1271</guid>
		<description>&lt;p&gt;[...] l&#8217;article : Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers. AKPC_IDS += [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] l&#8217;article : Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers. AKPC_IDS += [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Recreating UIActionsheet Buttons - BitWink Blog</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1255</link>
		<dc:creator>Recreating UIActionsheet Buttons - BitWink Blog</dc:creator>
		<pubDate>Tue, 09 Feb 2010 20:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1255</guid>
		<description>&lt;p&gt;[...] by this post on Cocoa Is My Girlfriend, I decided to recreate the buttons presented in iPhone [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] by this post on Cocoa Is My Girlfriend, I decided to recreate the buttons presented in iPhone [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Create Great Looking UIButtons Quick And Easy &#124; iPhone Development Tutorials and Programming Tips</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1249</link>
		<dc:creator>Create Great Looking UIButtons Quick And Easy &#124; iPhone Development Tutorials and Programming Tips</dc:creator>
		<pubDate>Fri, 05 Feb 2010 23:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1249</guid>
		<description>&lt;p&gt;[...] 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: Fun With UIButtons and Core Animation Layers [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<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: Fun With UIButtons and Core Animation Layers [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers &#171; Brainwash Inc. &#8211; iPhone/Mobile Development</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1248</link>
		<dc:creator>Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers &#171; Brainwash Inc. &#8211; iPhone/Mobile Development</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1248</guid>
		<description>&lt;p&gt;[...] via Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] via Cocoa Is My Girlfriend » Fun With UIButtons and Core Animation Layers. [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: camus</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1229</link>
		<dc:creator>camus</dc:creator>
		<pubDate>Thu, 28 Jan 2010 17:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1229</guid>
		<description>&lt;p&gt;Hi, thanks for sharing. I forgot I could use this. I usually use images and even create them by code one in this scenarios. What do you think is the performance penalty of this method against straight images?&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, thanks for sharing. I forgot I could use this. I usually use images and even create them by code one in this scenarios. What do you think is the performance penalty of this method against straight images?</p>

<p>Cheers!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Wenderlich</title>
		<link>http://www.cimgf.com/2010/01/28/fun-with-uibuttons-and-core-animation-layers/comment-page-1/#comment-1228</link>
		<dc:creator>Ray Wenderlich</dc:creator>
		<pubDate>Thu, 28 Jan 2010 15:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.cimgf.com/?p=861#comment-1228</guid>
		<description>&lt;p&gt;Wow - I didn&#039;t know you could do that, in the past I had been setting background images like you mentioned.  This has potential for nice and easy effects - thanks for sharing!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Wow &#8211; I didn&#8217;t know you could do that, in the past I had been setting background images like you mentioned.  This has potential for nice and easy effects &#8211; thanks for sharing!</p>]]></content:encoded>
	</item>
</channel>
</rss>
