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: 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