I have a class with an delegate property. Anyone who wants to be a delegate must conform to a protocol. I defined everything like this:
#import
The compiler's warning is correct. OtherClass
doesn't conform to the protocol because it doesn't declare the required fooBarWithFoo
method that the protocol expects.
Have you tried it this way?
#import "MyClass.h"
@interface OtherClass : NSObject {
// ivars
}
- (void)fooBarWithFoo:(CGFloat)foo; // <<< missing bit
@end