Trouble coding quiz app

Here is my code:

[code]//
// QuizViewController.m
// Quiz
//
// Created by James Balajan on 19/01/2016.
// Copyright © 2016 Chronobreaker. All rights reserved.
//

#import “QuizViewController.h”

@interface QuizViewController ()

// The arrays will be ordered lists containing questions and answers.
// The integer will keep track of what question the user is on.

@property (nonatomic) int currentQuestionIndex;

@property (nonatomic, copy) NSArray *questions;
@property (nonatomic, copy) NSArray *answers;

// James’ Notes:
// The code below declares the labels that were previously created
// in the interface builder as questionLabel and answerLabel
//
// The code past the properties ((nonatomic, weak)) gives every instance of QuizViewController
// an outlet named questionLabel, which it can use to point to a UILabel object.
// IB stands for Interface Builder
// The IBOutlet keyword tells Xcode that you will set this outlet using Interface Builder

@property (nonatomic, weak) IBOutlet UILabel *questionLabel;
@property (nonatomic, weak) IBOutlet UILabel *answerLabel;

@end

@implementation QuizViewController

  • (instancetype)initWithNibName:(NSString *)nibNameOrNil
    bundle:(NSBundle *)nibBundleOrNil
    {
    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 = @[@"What is 7+7?",
                         @"How many natural elements in the periodic table?",
                         @"What famous scientist is Mendelievium names after?",];
      
      self.answers = @[@"14",
                       @"98",
                       @"Mendeleev"];
    

    }

    //Return the address of the new object
    return self;
    }

  • (IBAction)showQuestion:(id)sender
    {

}

  • (IBAction)showAnswer:(id)sender
    {

}[/code]

self = [super initWithNibName:<#nibNameOrNil#> bundle:<#nibBundleOrNil#>]; is where the error is.

Error message is: expected expression.

I am using the latest version of Xcode.

Do you know what I’m doing wrong?

[quote] self = [super initWithNibName:<#nibNameOrNil#> bundle:<#nibBundleOrNil#>]; [/quote]
That should be

self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
because <#nibNameOrNil#> and <#nibBundleOrNil#> are only place holders; they are not valid expressions.

Thanks