Re: How does a UIButton perform a segue?
Re: How does a UIButton perform a segue?
- Subject: Re: How does a UIButton perform a segue?
- From: Rick Mann <email@hidden>
- Date: Wed, 25 Jun 2014 16:00:25 -0700
On Jun 25, 2014, at 15:58 , Quincey Morris <email@hidden> wrote:
> On Jun 25, 2014, at 14:44 , Rick Mann <email@hidden> 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@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