Tables are great for displaying data. We are going to use a table control provided by Cocos2D to display a list of the highest scored points by our players. The table will contain a list of player names and their scores.
Since we are not prompting for the player's name just yet, we are going to display dummy data, and in the next section, we are going to replace it with real highscores.
HighscoresScene.hfile and import the
HighscoresSceneclass conform to
@interface HighscoresScene: CCScene<CCTableViewDataSource>
HighscoresScene.mfile and define the constants of the ...