• 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: Passing data through a segue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing data through a segue


  • Subject: Re: Passing data through a segue
  • From: Rick Mann <email@hidden>
  • Date: Mon, 02 Apr 2012 04:10:02 -0700

Oh. It seems I can't even implement didSelectRowAtIndexPath; it's not getting called.

If the docs for didSelectRowAtIndexPath had been updated to talk about it's use in the context of segues, I wouldn't have to read every word of every other doc published to try to find the answer.

--
Rick

On Apr 2, 2012, at 3:57 , Rick Mann wrote:

> I have a simple storyboard app with a push segue from a master table to a detail controller. In the past, I'd implement -didSelectRowAtIndexPath, get the object for that row, create the detail view controller, assign the object to it, and push it.
>
> Now I don't really see a nice way to do that without an ivar in the master view controller. I can either override prepareForSegue, in which case I won't have the index path available, or call performSegue, in which case I won't have the destination view controller available.
>
> Am I missing something, or must I store the object in an ivar in one, and get at it in the other?
>
> TIA,
> 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


_______________________________________________

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

References: 
 >Passing data through a segue (From: Rick Mann <email@hidden>)

  • Prev by Date: Passing data through a segue
  • Next by Date: Re: Passing data through a segue
  • Previous by thread: Passing data through a segue
  • Next by thread: Re: Passing data through a segue
  • Index(es):
    • Date
    • Thread