• 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
How does a UIButton perform a segue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How does a UIButton perform a segue?


  • Subject: How does a UIButton perform a segue?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 25 Jun 2014 14:44:11 -0700

I added a UIButton to a UICollectionViewCell in IB, and then dragged a segue from that to another scene. 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.

One approach is to trigger the segue programmatically from the Cell subclass, but you can't do that without knowing the view controller. How does the button do it?

I can think of a few other approaches, but they're all kinda gross. Any recommendations? I want to present a modal form sheet (iPad) when a button inside the UICollectionViewCell is tapped without doing the normal segue that happens when any other part of the cell is tapped (to allow the user to edit metadata for that item without opening the full UI for that item).

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


  • Follow-Ups:
    • Re: How does a UIButton perform a segue?
      • From: Alex Zavatone <email@hidden>
    • Re: How does a UIButton perform a segue?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: CoreData Save As-problem
  • Next by Date: Re: CoreData Save As-problem
  • Previous by thread: Re: NSTableView view based full width view
  • Next by thread: Re: How does a UIButton perform a segue?
  • Index(es):
    • Date
    • Thread