November 2013
Beginner
592 pages
17h 49m
English
All you have to do now is add the action method, create the gesture recognizer, and add it to the detail controller. Follow these steps:
1. Import ReturnGestureRecognizer.h into MainMenuViewController.m.
2. Add the code in Listing 12-10 below carViewDone:.
3. Update viewDidLoad to allocate a gesture recognizer and then set the detail controller’s returnGesture property. Add the following code to the end of the method:
ReturnGestureRecognizer *returnGesture = [[ReturnGestureRecognizer alloc] initWithTarget:self action:@selector(returnHome:)]; [DetailController sharedDetailController].returnGesture ...
Read now
Unlock full access