June 2011
Intermediate to advanced
590 pages
19h 31m
English
Methods and instance variables are declared in the header file (in this case, QuizAppDelegate.h), but the actual code for the methods is placed in the implementation file (in this case, QuizAppDelegate.m). Select QuizAppDelegate.m from the project navigator and type in the following init method. This method creates two arrays and fills them with questions and answers.
@implementation QuizAppDelegate
- (id)init { // Call the init method implemented by the superclass self = [super init]; if(self) { // Create two arrays and make the pointers ...Read now
Unlock full access