Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double Tap Segue to move to next storyboard

I am making an app where the user has to double tap a segue to move to the next storyboard, but I cannot find anywhere where it tells you how to do this. Does anyone know how I can achieve this?

like image 490
Ids Surrrrr Avatar asked Dec 04 '25 03:12

Ids Surrrrr


1 Answers

If you do this in Interface Builder with a storyboard:

  1. Drag a tap gesture recognizer from the object library onto your view.

    tap gesture

  2. Make sure the view you dragged it to has "user interaction enabled" checked.

    user interaction enabled

  3. Select the tap gesture you added to your scene (which you can find in your document outline on the left side of Interface Builder's main panel; this document outline can be collapsed where you can't see it ... if you don't see it, select "Show Document Outline" from the "Edit" menu).

    select gesture recognizer

  4. Change the number of taps from 1 to 2.

    taps

  5. control-drag from the tap gesture in the document outline to the next scene and choose your type of segue you want.

Frequently, people will create their gesture recognizers in code, so if you're interested in how that works, let me know.

like image 74
Rob Avatar answered Dec 07 '25 22:12

Rob