每当我在iOS中看到其他代码时,我都会感到困惑。为什么我们在iOS中的.h文件中两次声明同样的事情。我有例如是
@interface ViewController : UIViewController<GPUImageMovieWriterDelegate,GPUImageInput>
{
GPUImageMovie *_movieFile;
GPUImageOutput<GPUImageInput> *_sketchFilter;
GPUImageMovieWriter *_movieWriter;
}
@property (nonatomic,retain) GPUImageMovie *movieFile;
@property (nonatomic,retain) GPUImageOutput<GPUImageInput> *sketchFilter;
@property (nonatomic,retain) GPUImageMovieWriter *movieWriter;
@end
这就是为什么我们要声明两个tile _movieFile,_movieFile和movieWriter。任何人都知道确切原因然后请解释。