Changes

Jump to: navigation, search

An iOS 7 Gesture Recognition Tutorial

12 bytes added, 20:42, 1 February 2016
m
Text replacement - "<google>BUY_IOS7</google>" to "<htmlet>ios9_upgrade</htmlet>"
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
Having added and configured the gesture recognizers, the next step is to connect each recognizer to its corresponding action method.
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>
Display the Assistant Editor and verify that it is displaying the content of RecognizerViewController.h. Ctrl-click on the Tap Gesture Recognizer object in the document outline panel and drag the line to the area immediately beneath the newly created outlet in the Assistant Editor panel. Release the line and, within the resulting connection dialog, establish an Action method configured to call a method named tapDetected with the id value set to UITapGestureRecognizer as illustrated in Figure 47-2:
<googlehtmlet>BUY_IOS7ios9_upgrade</googlehtmlet>

Navigation menu