<?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: UIButton troubles, a better solution</title>
	<atom:link href="http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Fri, 30 Jul 2010 10:14:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Zachary Bedell</title>
		<link>http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/comment-page-1/#comment-15409</link>
		<dc:creator>Zachary Bedell</dc:creator>
		<pubDate>Tue, 10 Nov 2009 17:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=651#comment-15409</guid>
		<description>Thanks for posting this!  Very handy bit of hack!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this!  Very handy bit of hack!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent Faves Tagged With "uikit" : MyNetFaves</title>
		<link>http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/comment-page-1/#comment-930</link>
		<dc:creator>Recent Faves Tagged With "uikit" : MyNetFaves</dc:creator>
		<pubDate>Mon, 02 Feb 2009 01:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=651#comment-930</guid>
		<description>[...] and HomeScreen 2.0 Widgets - cydia, iPhone Apps ... First saved by MOQUEEFA &#124; 9 days ago      UIButton troubles, a better solution First saved by Maxpowers5240 &#124; 12 days ago      get out of jail free First saved by seubuneco &#124; 20 [...]</description>
		<content:encoded><![CDATA[<p>[...] and HomeScreen 2.0 Widgets &#8211; cydia, iPhone Apps &#8230; First saved by MOQUEEFA | 9 days ago      UIButton troubles, a better solution First saved by Maxpowers5240 | 12 days ago      get out of jail free First saved by seubuneco | 20 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Olsson</title>
		<link>http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/comment-page-1/#comment-928</link>
		<dc:creator>Fredrik Olsson</dc:creator>
		<pubDate>Mon, 26 Jan 2009 07:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=651#comment-928</guid>
		<description>I have not used this with &lt;code&gt;[UIButton buttonWithType:UIButtonTypeRoundedRect]&lt;/code&gt; before, turns out that this is a special case returning a &lt;code&gt;UIRoundedRectButton&lt;/code&gt;. &lt;code&gt;UIRoundedRectButton&lt;/code&gt; is a private subclass of &lt;code&gt;UIButton&lt;/code&gt;, and therefor it gets kind of ruined when we change the class. 

What you must do in this special case is to create your custom class (Where you override &lt;code&gt;pointInside:withEvent:&lt;/code&gt; I assume?) as a subclass of &lt;code&gt;UIRoundedRectButton&lt;/code&gt;. I can not recommend this as UIRoundedRectButton is private, and could very well be dropped and/or break in any point release upgrade of the iPhone firmware.

But thanks for bringing this to my attention. I have now updated the post to inform readers about this issue, and updated the code to avoid this special case.</description>
		<content:encoded><![CDATA[<p>I have not used this with <code>[UIButton buttonWithType:UIButtonTypeRoundedRect]</code> before, turns out that this is a special case returning a <code>UIRoundedRectButton</code>. <code>UIRoundedRectButton</code> is a private subclass of <code>UIButton</code>, and therefor it gets kind of ruined when we change the class. </p>
<p>What you must do in this special case is to create your custom class (Where you override <code>pointInside:withEvent:</code> I assume?) as a subclass of <code>UIRoundedRectButton</code>. I can not recommend this as UIRoundedRectButton is private, and could very well be dropped and/or break in any point release upgrade of the iPhone firmware.</p>
<p>But thanks for bringing this to my attention. I have now updated the post to inform readers about this issue, and updated the code to avoid this special case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikael</title>
		<link>http://blog.jayway.com/2008/12/17/uibutton-troubles-a-better-solution/comment-page-1/#comment-927</link>
		<dc:creator>Mikael</dc:creator>
		<pubDate>Sat, 24 Jan 2009 23:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=651#comment-927</guid>
		<description>When I try to implement this bug fix my buttons looses it&#039;s designs. I can only see the title not the lines och graphics. I want to use UIButtonTypeRoundedRect.
Can you help me locate the problem?</description>
		<content:encoded><![CDATA[<p>When I try to implement this bug fix my buttons looses it&#8217;s designs. I can only see the title not the lines och graphics. I want to use UIButtonTypeRoundedRect.<br />
Can you help me locate the problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
