Alessandro
Alessandro

Reputation: 4100

No visible interface declares the method xx

Getting this error for the method setCircle as you see in the photograph. It makes no sense at all: the method above, setIsToday:, is recognised just fine and is declared only once, directly above the setCircle method. as you can see, the method exists in the code only once, with two calls of this form:

[cell setIsToday];

which succeeded in both cases. If I do:

[cell setCircle];

instead I get the error.

enter image description here

Tried an Xcode restart, clean build, etc. No luck.

Upvotes: 0

Views: 83

Answers (2)

Stephen Groom
Stephen Groom

Reputation: 3997

You cannot call [cell setIsToday]; as the method is -(void)setIsToday:(BOOL)isToday (note the parameter).

You need to call either [cell setIsToday:YES] or [cell setIsToday:NO]

Upvotes: 2

sunny
sunny

Reputation: 3891

Where are you calling it from? If you are calling it from another object, setCircle must be declared in your .h header. Perhaps you forgot?

Upvotes: 0

Related Questions