We are now ready to write the program code to implement the required dataSource and delegate methods.
Open the Global Currency project in Xcode.
Click on the file named
BTS_GCTableViewDelegate.h
and add the following#defines
to create literal values that can be used to identify each column of the table view:// Create defines that will be used // to identify the column in the // table view #define kBTSGCCurrency @"currency" #define kBTSGCValue @"value"
Click on the file named
BTS_GCTableViewDelegate.h
and add the following code to create a reference to a single member variable that we will use to cache a reference to theAppDelegate
object:#import "BTSAppDelegate.h" #import <Foundation/Foundation.h> // Create defines that will be used // to identify the column in the // table view #define kBTSGCCurrency @"currency" #define kBTSGCValue @"value" @interface BTS_GCTableViewDelegate : NSObject { // Create a reference to the...