Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-05-2010, 05:53 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 33
DevSdk is on a distinguished road
Default UITableViewCellAccessoryDetailDisclosureButton and DidSelectRowAtIndexPath

Is it possible to make a cell respond to both events:
accessoryButtonTappedForRowWithIndexPath
DidSelectRowAtIndexPath

???

If the cell has a detail disclosure button, it doesn't respond anymore to DidSelectRowAtIndexPath events... Do I miss something?

Thanks

Last edited by DevSdk; 03-05-2010 at 05:56 AM.
DevSdk is offline   Reply With Quote
Old 03-05-2010, 09:29 AM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

just point both events to use the same function

e.g.

Code:
-(void)didSelectRow...
{
   [self doSomethingSpecial];
}
also set the selector for the accessory button tap to the same "doSomethingSepecial" method

Last edited by smithdale87; 03-05-2010 at 09:31 AM.
smithdale87 is offline   Reply With Quote
Reply

Bookmarks

Tags
cell, detaildisclosurebutton, didselectrowatindexpath, table

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 349
9 members and 340 guests
2Apps1Day, akacaj, c2matrix, esoteric, givensur, mjnafjke, Pudding, SLIC, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0