I'm using Xcode 5, the problem is in the following two self.<something> assignment statement Xcode says that expected expression, and also on return statement.
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
self.questions = [NSArray arrayWithObjects: @"From what is cognac made?", @"What is 7+7?", @"What is the capital of Vermont?",nil];
self.answers = [NSArray arrayWithObjects: @"Grapes",@"14",@"Montpelier",nil];
}
return self;
}
_propertyNameand not theself.propertynamein init and dealloc since this will make sure KVO will not get fired and makes is more thread save.selfwithininit, just that you need to understand it. However this is not what this question is about.