佚名通过本文主要向大家介绍了swift错误,oc调用swift,swift在哪直播,swift在哪个战队,swift在哪个队等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 在swift中调用indexPathrow错误
描述:
解决方案1:
描述:
错误信息为:instance member 'row' cannot be used on type 'IndexPath'
var node:Node = tempData?.object(at: IndexPath.row)
解决方案1:
大写开头的 IndexPath
是一个类型,并不是一个实例对象。 看起来你是想 indexPath.row