[英]Swift - Method '*()' with Objective-C selector '*' conflicts with getter for '*' from superclass 'NSObject' with the same Objective-C selector
[英]Swift - Method '*()' with Objective-C selector '*' conflicts with getter for '*' from superclass 'UIView' with the same Objective-C selector
尝试重命名borderColor
变量名称。 似乎ChartViewBase正在使用它。
另外,请更改自定义类中与基类变量名称和属性名称冲突的所有属性名称。
这应该工作..干杯!
您必须更改它,因为超类已经声明了它的属性(可能是UIView
),因此将其更改为lineChartBorderColor
或其他内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.