美文网首页
Type 'ChartDataSet' does not con

Type 'ChartDataSet' does not con

作者: 小生不才_HR | 来源:发表于2024-08-02 17:45 被阅读0次
截屏2.png

第三方库报错: Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'

解决方案:

public func replaceSubrange<C>(_ subrange: Swift.Range<Index>, with newElements: C) where C : Collection, Element == C.Element {
        entries.replaceSubrange(subrange, with: newElements)
        notifyDataSetChanged()
    }

复制上文 如图所示


截屏.png

相关文章

网友评论

      本文标题:Type 'ChartDataSet' does not con

      本文链接:https://www.haomeiwen.com/subject/jdwahjtx.html