Lior Pollak
Lior Pollak

Reputation: 3450

Weird errors in Xcode

I've recently changed a few lines of code in my app, and it screwed all of it. There a few weird errors I would like to note here, hoping some of you will know a solution to it-

First- I'm implementing the delegate of UITextField in my app, put it in those , but still in my .m file when I try to implement this method-

- (void)textFieldDidBeginEditing:(UITextField *)textField

It shows this error- Use of undeclared identifier 'textFieldDidBeginEditing'. Second and third, there are two parse issues- Expected '}' and Missing '@end'. When I add Missing @end from the red circle with a little white square in it button, it shows me the same error again- infinite loop. How can I solve these?

Thanks in advance.

Upvotes: 0

Views: 654

Answers (1)

user529758
user529758

Reputation:

The problem is that the actual errors are not where you (and the compiler) think(s) it is. Deducing from the error message you got, you're missing a closing curly bracket (}) from the part of your code which falls before the line which errors out.

Upvotes: 6

Related Questions