Chapter 1 issues in Xcode7


When I try to type in the initializer, initWithNibName:bundle:, I keep getting the message “No visible interface for ‘NSObject’ declares the selector ‘initWithNibName:bundle.’” Xcode does not like how I called the superclass constructor. I have tried finding solutions on other sites, but nobody seems to have the same problem that I do.

@implementation QuizViewController //this is called a “directive”

-(instancetype) initWithNibName:(NSString *)nibNameOrNil bundle: (NSBundle *)nibBundleOrNil {
//call init method implemented by superclass
self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil];

if (self) {
    //create two arrays filled with questions and answers
    //and make the pointers point to them
    self.questions = @[@"", @"", @""];
    self.answers = @[@"", @"", @""];


Any help would be greatly appreciated! Thanks!