我有一个类。它的头文件看起来像这样无法导入头文件
#import <UIKit/UIKit.h>
typedef void (^SpinnerViewCompletionBlock)();
@interface ABResultsControllerSpinnerView : UIView
- (void)startAnimation;
- (void)stopAnimation;
- (void)startAnimationWithCompletion: (SpinnerViewCompletionBlock)completion;
- (void)stopAnimationWithCompletion: (SpinnerViewCompletionBlock)completion;
- (UIColor *)spinnerColor;
@end
.m文件里面我有这个
#import "Masonry.h"
的问题是,编译器给我的,它无法找到"Masonry.h"
错误。但该文件在项目中。
问题是什么?
确保文件不仅添加到项目,但它位于项目文件夹。 – Sulthan
这就是要点。非常感谢! –