• 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
Can I generate a segue this way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I generate a segue this way?


  • Subject: Can I generate a segue this way?
  • From: Rick Aurbach <email@hidden>
  • Date: Thu, 07 Jun 2018 00:14:14 -0500

I have a situation where I want a user tap on a UILabel to generate a segue.
(Yes, it sounds a bit strange, but it makes sense in context.)

Working with a storyboard, I add a Tap Gesture Recognizer, connect it to the
label, and connect the segue to the gesture recognizer. I think I've set
everything up correctly, but tapping on the label does not trigger the segue.

Before I spend even more time double-checking my setup, I would like to ask if
this is possible. I.e., should I be able to trigger a segue from a gesture
recognizer? (IB lets me do it...) and if so, is my approach correct? I figure I
ought to be able to do this programmatically, but working in the storyboard is
just so much nicer... By the way (if this makes a difference), the segue is
connected to a Storyboard Reference, rather than to a scene in the current
storyboard. Could this be the problem?

What do you think?

Cheers,

Rick Aurbach

_______________________________________________

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: Can I generate a segue this way?
      • From: Ben Kennedy <email@hidden>
  • Prev by Date: Re: CoreText: Access stylistic sets of Zapfino build-in font
  • Next by Date: Re: Can I generate a segue this way?
  • Previous by thread: Re: CoreText: Access stylistic sets of Zapfino build-in font
  • Next by thread: Re: Can I generate a segue this way?
  • Index(es):
    • Date
    • Thread