Please note, this blog entry is from a previous course. You might want to check out the current one.
Add a tab bar controller to your application. One tab will be the game you built last week in Assignment 1. The other tab will be a new game, Set. Set is still a card game, so a good solution to this assignment will use object-oriented programming techniques to share a lot of code.
Start by creating a new view controller class GameViewController, and another one SetGameViewController which inherits from the first one. Make the first class also the parent class for the CardGameViewController:
#import "GameViewController.h" @interface CardGameViewController : GameViewController
GameViewController will hold the “common parts” of the to card game view controllers …
The tab bar controller has already been added during lecture #5. Drag out an additional view controller and link it to the new SetGameViewController class.
The complete code is available on github.