Design for custom tableviewcell button action
Design for custom tableviewcell button action
- Subject: Design for custom tableviewcell button action
- From: Bryan Hansen <email@hidden>
- Date: Wed, 24 Jun 2009 23:30:24 -0700
I'd like to add a custom button to my own custom tableview subclass
that will perform an action on the tableviewcontroller class. This is
pretty much identical to the way accessoryviews call a method on the
tableviewdelegate when it is tapped. The difference is it will be my
own button placed where I choose in the cell. The problem I'm having
is figuring out how to propagate this to the tableviewcontroller. The
UITableViewCell class does not hold a reference back to the tableview
or controller, so I'm a little confused on the best way to set up this
behavior. Can anyone offer some insight on the correct way to get a
button tap in a cell to call a method on the tableviewcontroller? One
that does not have bad coupling in its design?
Thanks,
Bryan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden