In DataProvider.h
@protocol NewDataProviderProtocol
- (void)fetchNewData;
@end
In SomeClass
#import DataProvider.h
@interface SomeClass :NSObject <NewDataProviderProtocol>
@end
When I try to make SomeClass conform to NewDataProviderProtocol it says,
No type or protocol named 'NewDataProviderProtocol'
It's weird since I already imported header DataProvider.h in which the protocol is declared.
So I forward declare the NewDataProviderProtocol before interface of SomeClass but xcode was
Cannot find definition for **NewDataProviderProtocol**
What's the reason and the workaround for this?