The iPad and iPhone car detail controllers need to send the new
nextOrPreviousCar: method to their related car table menu. One way to do that is to make the new method public and then set a reference to the car table view in each detail view. An alternative is to expand the existing
ViewCarProtocol and add a protocol-enabled delegate to the iPad car detail. Add the protocol and behavior by following these steps:
1. Add a new protocol message to
ViewCarProtocol.h with the same signature as
nexOrPreviousCar:, using the following lines:
@optional - (void)nextOrPreviousCar:(BOOL)isNext;
The message is optional because other classes support the protocol but might not need to move through cars. ...