• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does a UIButton perform a segue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How does a UIButton perform a segue?
      • From: Quincey Morris <email@hidden>
References: 
 >How does a UIButton perform a segue? (From: Rick Mann <email@hidden>)
 >Re: How does a UIButton perform a segue? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: How does a UIButton perform a segue?
  • Next by Date: Re: How does a UIButton perform a segue?
  • Previous by thread: Re: How does a UIButton perform a segue?
  • Next by thread: Re: How does a UIButton perform a segue?
  • Index(es):
    • Date
    • Thread