Ios 找不到';UIView';,'的超类;JYGraphPoint'; #导入 @接口JYGraphPoint:UIView{ UIColor*strokeColour; UIColor*fillcolor; } @属性UIColor*strokeColour; @属性UIColor*FILLCOLOR; @结束

Ios 找不到';UIView';,'的超类;JYGraphPoint'; #导入 @接口JYGraphPoint:UIView{ UIColor*strokeColour; UIColor*fillcolor; } @属性UIColor*strokeColour; @属性UIColor*FILLCOLOR; @结束,ios,objective-c,uiview,uikit,watchkit,Ios,Objective C,Uiview,Uikit,Watchkit,将目标成员身份设置为watchkit扩展后出现以下错误 /……JYGraphPoint.h:11:27:找不到“UIView”的接口声明,“JYGraphPoint”的超类 请帮忙。谢谢。我建议您删除JYGraphPoint.h和JYGraphPoint.m,并智能地粘贴代码@Simon您在storyboard/Xib中使用UIVIew映射类了吗?watch工具包不支持UIViewim使用以下代码:他的示例没有错误,但我的示例有错误。我尝试使用podfile或将文件复制到我的项目中,这两种方法都

将目标成员身份设置为watchkit扩展后出现以下错误

/……JYGraphPoint.h:11:27:找不到“UIView”的接口声明,“JYGraphPoint”的超类


请帮忙。谢谢。

我建议您删除JYGraphPoint.h和JYGraphPoint.m,并智能地粘贴代码@Simon您在storyboard/Xib中使用UIVIew映射类了吗?watch工具包不支持UIViewim使用以下代码:他的示例没有错误,但我的示例有错误。我尝试使用podfile或将文件复制到我的项目中,这两种方法都不起作用。我不知道为什么他的例子在watchos上效果很好,但我的却不行。
#import <UIKit/UIKit.h>

@interface JYGraphPoint : UIView {
    UIColor *strokeColour;
    UIColor *fillColour;
}

@property UIColor * strokeColour;
@property UIColor *fillColour;

@end