<?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: Larger Touch Area for Detail Disclosure Indicator</title>
	<atom:link href="http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/feed" rel="self" type="application/rss+xml" />
	<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator</link>
	<description>Tips and Tricks for iPhone, iPod, iPad and iOS Developers</description>
	<lastBuildDate>Tue, 17 Apr 2012 16:54:31 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dolly</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-1526</link>
		<dc:creator>dolly</dc:creator>
		<pubDate>Fri, 20 Nov 2009 09:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-1526</guid>
		<description>albertofloyd, thank you very much for your mentioning Accessory example. It exactly solves all problems connected with indexPath and UIButton actions.</description>
		<content:encoded><![CDATA[<p>albertofloyd, thank you very much for your mentioning Accessory example. It exactly solves all problems connected with indexPath and UIButton actions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shrikant</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-1510</link>
		<dc:creator>shrikant</dc:creator>
		<pubDate>Wed, 18 Nov 2009 05:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-1510</guid>
		<description>to Gary
First typecast the sender to button
UIButton *button=(UIButton *)sender;
int tag=button.tag;</description>
		<content:encoded><![CDATA[<p>to Gary<br />
First typecast the sender to button<br />
UIButton *button=(UIButton *)sender;<br />
int tag=button.tag;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-407</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Sat, 21 Mar 2009 05:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-407</guid>
		<description>Jess,

I&#039;m trying to use the tag property as you&#039;ve mentioned above, but can&#039;t get it to work.  Would you mind posting the code of how to do this?

After setting the button&#039;s tag value when I create the button, I&#039;ve tried using sender.tag to retrieve the value when the button is pressed but my code won&#039;t compile.  I just get a &#039;request for member not a structure or union&#039; error.

Any sample code would be appreciated.</description>
		<content:encoded><![CDATA[<p>Jess,</p>
<p>I&#8217;m trying to use the tag property as you&#8217;ve mentioned above, but can&#8217;t get it to work.  Would you mind posting the code of how to do this?</p>
<p>After setting the button&#8217;s tag value when I create the button, I&#8217;ve tried using sender.tag to retrieve the value when the button is pressed but my code won&#8217;t compile.  I just get a &#8216;request for member not a structure or union&#8217; error.</p>
<p>Any sample code would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: albertofloyd</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-339</link>
		<dc:creator>albertofloyd</dc:creator>
		<pubDate>Sun, 01 Mar 2009 02:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-339</guid>
		<description>Have you seen the Accessory example code at the SDK.
The IndexPath is got through the touch point  at the view.

CGPoint currentTouchPosition = [touch locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint: currentTouchPosition];</description>
		<content:encoded><![CDATA[<p>Have you seen the Accessory example code at the SDK.<br />
The IndexPath is got through the touch point  at the view.</p>
<p>CGPoint currentTouchPosition = [touch locationInView:self.tableView];<br />
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint: currentTouchPosition];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kit</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-324</link>
		<dc:creator>Kit</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-324</guid>
		<description>Thanks for this tip.  I used the tag property of the button to store the cell index when I created the button and I was able to use it to trigger an action based on the button&#039;s cell # even though the button is not tied to the cell.</description>
		<content:encoded><![CDATA[<p>Thanks for this tip.  I used the tag property of the button to store the cell index when I created the button and I was able to use it to trigger an action based on the button&#8217;s cell # even though the button is not tied to the cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jess</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-317</link>
		<dc:creator>Jess</dc:creator>
		<pubDate>Tue, 17 Feb 2009 15:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-317</guid>
		<description>Hi Mitch,

Thanks for the inquiry!  One way to go is store the row number in the tag attribute of the button when building the cell.  That way you&#039;ll have this data in the sender object.  This approach becomes less useful (or more complicated) if your table view possesses more than one section.  I&#039;m sure there are more elegant approaches.

Using the code below should work too, but experimenting this morning showed me it does not return the correct data at least for my implementation.

NSIndexPath *indexPath = [tableView indexPathForSelectedRow];

Keep me posted on how it goes!</description>
		<content:encoded><![CDATA[<p>Hi Mitch,</p>
<p>Thanks for the inquiry!  One way to go is store the row number in the tag attribute of the button when building the cell.  That way you&#8217;ll have this data in the sender object.  This approach becomes less useful (or more complicated) if your table view possesses more than one section.  I&#8217;m sure there are more elegant approaches.</p>
<p>Using the code below should work too, but experimenting this morning showed me it does not return the correct data at least for my implementation.</p>
<p>NSIndexPath *indexPath = [tableView indexPathForSelectedRow];</p>
<p>Keep me posted on how it goes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch</title>
		<link>http://iPhoneIncubator.com/blog/windows-views/larger-touch-area-for-detail-disclosure-indicator/comment-page-1#comment-316</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Tue, 17 Feb 2009 06:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneIncubator.com/blog/?p=86#comment-316</guid>
		<description>Hello,

Thanks for the code.  I&#039;m having some difficulties when the button is actually submitted.

I&#039;m adding the button view to after I&#039;ve subclassed a UITableViewCell with multiple labels.  The button appears fine, but I&#039;m unable to return the IndexPath for that selected cell.

I&#039;m using the SeismicXML example to build my UITableView.  The code inside the - (void) detailDiscolosureIndicatorSelected: (UIButton *) sender  doesn&#039;t allow me to grab any of the data associated with my cell.

Any suggestions? I&#039;m really in need of getting a UIButton added to a UITableViewCell to respond to its own actions.

Thank you,

Mitch</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the code.  I&#8217;m having some difficulties when the button is actually submitted.</p>
<p>I&#8217;m adding the button view to after I&#8217;ve subclassed a UITableViewCell with multiple labels.  The button appears fine, but I&#8217;m unable to return the IndexPath for that selected cell.</p>
<p>I&#8217;m using the SeismicXML example to build my UITableView.  The code inside the &#8211; (void) detailDiscolosureIndicatorSelected: (UIButton *) sender  doesn&#8217;t allow me to grab any of the data associated with my cell.</p>
<p>Any suggestions? I&#8217;m really in need of getting a UIButton added to a UITableViewCell to respond to its own actions.</p>
<p>Thank you,</p>
<p>Mitch</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/10 queries in 0.012 seconds using disk: basic
Object Caching 295/295 objects using disk: basic

Served from: iphoneincubator.com @ 2012-05-21 06:40:07 -->
