Raoul
Raoul

Reputation: 85

@end is missing implementation context Xcode Error

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

Answers (5)

Hot Licks
Hot Licks

Reputation: 47739

Note that this problem can occur if you erroneously nest one @implementation inside another.

Upvotes: 0

PostCodeism
PostCodeism

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

Sonu
Sonu

Reputation: 248

try to added @end to the end of your code to solve the problem !

Upvotes: 0

aks.knit1108
aks.knit1108

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

Antonio MG
Antonio MG

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

Related Questions