Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Lucagfc

macrumors 6502
Original poster
Sep 23, 2008
382
85
Hi

I want to personalize my UITableView changing background when user tap on a specific cell.
I've a dedicated ViewController for each cell and if I implement touchesBegan method in this viewController i can change my cell background without any problem. The problem is that the method "didSelectRowAtIndexPath" of the UITableView is no longer called. How can I call it manually? I am in another viewController and I have no access to that method. or how can propagate to the touch tableView?
Thanks a lot
 
To me, this approach seems backward. I would have tableView:didSelectRowAtIndexPath: respond to the touch event and have it trigger some method in the viewController to change the background, as well as handle anything else you need it to do.
 
The problem is that the didSelectRowAtIndexPath metoh is called when i end my touch if I continue to touch without moving away my finger I can't execute my code
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.