• 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: Roland King <email@hidden>
  • Date: Thu, 26 Jun 2014 08:10:52 +0800

On 26 Jun, 2014, at 7:58 am, Rick Mann <email@hidden> wrote:

> Yes, I know all of that.
>
> Here's why I asked the question in the subject: A UIView cannot, by itself, perform a segue (at least, I don't know how). A UIViewController can do that.
>
> Which is why I was asking how a UIButton does it (when you wire it up in IB). Then in my -stuffToDo:, I could perform the segue. But I didn't like the idea of adding a viewController property to my cells, because it seemed heavy-handed. Really, I just wanted to pass along some arbitrary data with the action message.
>
> In the end, I used an associated object.
>

If there's a UIViewController somewhere, it's in the responder chain. I would expect the UIButton, when hooked up in IB, just walks up that looking for the view controller.


_______________________________________________

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: Rick Mann <email@hidden>
References: 
 >How does a UIButton perform a segue? (From: Rick Mann <email@hidden>)
 >Re: How does a UIButton perform a segue? (From: Alex Zavatone <email@hidden>)
 >Re: How does a UIButton perform a segue? (From: Rick Mann <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