MarkerView在“图表”框架中,当我使用swift子类化MarkerView时,它将在Project-Swift.h文件中发生构建错误。
在TestMV.swift中:导入图表类TestMV:MarkerView {}。
在KCTFunFit-Swift.h中SWIFT_CLASS(“ _ TtC9KCTFunFit6TestMV”)界面TestMV:ChartMarkerView-(非空实例类型)initWithFrame:(CGRect)frame;-(可空的实例类型)initWithCoder:(NSCoder * _Nonnull)编码器结束
在“图表”框架中objc(ChartMarkerView)打开类MarkerView:NSUIView,IMarker {……。}