Reputation: 85
In my Quiz screen.m, I get this error:
@implementation BT_screen_quiz ---------> @end is missing implementation context
How do I fix this error?
Do I just delete the code?
Upvotes: 0
Views: 2346
Reputation: 47739
Note that this problem can occur if you erroneously nest one @implementation inside another.
Upvotes: 0
Reputation: 1070
Checking for @end that mysteriously disappears is the obvious answer.
Sometimes though, if you haven't closed a conditional (if, while, etc) statement with a closing } bracket, then you also get this error. Check your {} and [] brackets.
Upvotes: 0
Reputation: 1305
write your code like this:
@implementation BT_screen_quiz
@synthesize quizRunning, numberCorrect, numberIncorrect, streak, totalPoints, totalSeconds;
@synthesize currentQuestionIndex, currentQuestionObject, quizDidEnd;
/* quiz controls */
@synthesize startButtonBox, startButton, questionBox, answerButtonBox, paddingTop;p;
@end
/* quiz runtime properties */
Means your all code should be in between @implementation
and @end
Upvotes: 0
Reputation: 20410
Its as easy as putting @end ad the end your code in your file, something like this:
@implementation classname
+classMethod {
// implementation
}
-instanceMethod {
// implementation
}
@end
Upvotes: 2