I have changed one of my instance methods to a class method so that it can be accessed from another class. The method is successfully called, but I have one warning on my code:
- Incomplete implementation (on the line '@implementation myViewController')
My class code looks like this:
//...
@implementation myViewController
#pragma mark - myMethod
+ (void)myMethod:(CustomUIView *)customView didSelectText:(NSString *)text
{
//...
}
//...
In my class header file, I have the following:
#import "CustomUIView.h"
//...
@interface myViewController : CustomUIViewController <CustomUIViewDelegate>
{
//...
}
//...
@end
I imagine I must be declaring the method in the wrong part of the header file, possibly due to the clause? Or I'm missing something else altogether. I've had a good look around the net and as far as I can tell I'm following protocol; perhaps there's something peculiar to my setup?
Edit: This is my protocol from my CustomUIView header file:
@class CustomUIView;
@protocol CustomUIViewDelegate <NSObject>
+ (void)myMethod:(CustomUIView *)customView didSelectText:(NSString *)text;
//...
@end