Implementing the DetailController Singleton
In addition to implementing the split view controller delegate protocol, the new class eventually manages the detail content. And even if it did not, most of the changes made by a split view delegate are to the detail view.
First, you implement the singleton functionality:
1. Add a new class called
DetailController, based on
NSObject, to the bottom of the iPad group.
DetailController.h and add the following line just above the
@end statement. The
+ sign indicates a class method:
3. Set the contents of
DetailController.m to the code shown in Listing 11-3.