In order for our table view to display values, we need to implement something called a delegate. As its name implies, a delegate performs a task on behalf of another object. In this case our table view delegate will handle any clicks on our table and will implement the methods that return the information that will be displayed in the table's rows and columns.
Add the member variable to
BTSAppDelegate.h
as follows:// // Define the Member elements // @property (strong) NSMutableArray *m_numbersArray;
Add the member variable to
BTSAppDelegate.m
as follows:// // Define the Member elements // @synthesize m_numbersArray;
From the File menu, select New, then select New File… and create a new class named BTS_NCTableViewDelegate that will be used to manage the table views.
Select the
MainMenu.xib
file and create a new object from the Object Library.Change the name of the new object to BTS_NCTableViewDelegate.
Change the class of the new object...