Very few changes are needed for this class. Follow these steps:
1. In the
.h file, remove all references to
ViewCarProtocol and delete the delegate declaration.
2. Add a declaration for the
nextOrPrevious: block property:
@property (copy, nonatomic) void (^nextOrPreviousCar)(BOOL isNext);
3. In the
.m file, use the new block in
swipeCarLeft:. Each call looks like this:
Replace BooleanArgument with either
NO, depending on the method.
All that remains is to update the iPad’s main car menu.