On Jun 25, 2014, at 15:58 , Quincey Morris <[email protected]> wrote:
> On Jun 25, 2014, at 14:44 , Rick Mann <[email protected]> wrote: > >> The problem I need to solve is for that destination view controller to know >> which represented object was associated with the cell in which the source >> UIButton was. But I can't see how to do that. > > Doesn’t ‘prepareForSegue:’ give you the information you need? Presumably > ‘sender’ will be the button in this case > Sort of. The button is the sender. But there's no way to determine in which cell that button is. I ended up associating the model object that the cell knows about with the UIButton, and pulling that out in -prepareForSegue: -- Rick _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
