我有一个swift
项目,我正在MBProgressHUD
通过桥接头文件使用它。我遇到的问题是UIView
似乎没有被识别为类型,我不知道为什么。
在我的桥接头中,我有:
#import "MBProgressHUD.h"
我尝试构建时遇到的错误都是相同的:
Cannot find interface declaration for 'UIView', superclass of MBProgressHUD.
我检查了 MBProgressHUD 文件,我可以看到它确实导入了以下内容:
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>
#import "MBProgressHUD.h"
#import "CSNotificationView.h"
有没有其他人看到过类似的问题?如果是这样,您知道问题是什么,我该如何解决?