First, in LoadingVC.h, I declare the protocol:
@protocol VideoWorker <NSObject> @required @property (nonatomic) float progress; @property (nonatomic) BOOL done; -(void)beginWorking; @end @interface LoadingVC : UIViewController <UIAlertViewDelegate> ... @end
then at BlurWorkerGPU.h
... #import "LoadingVC.h" @interface BlurWorkerGPU : NSObject <VideoWorker> { ... } - (void)beginWorking; @property(nonatomic)float progress; @property(nonatomic)BOOL done; ... @end
However, llvm says that
"No type or protocol named" VideoWorker "
which is strange as I import the header where the protocol is defined. Any clues?
tna0y source share