search

Home  >  Q&A  >  body text

ios - 在swift中调用indexPath.row错误

错误信息为:instance member 'row' cannot be used on type 'IndexPath'

    var node:Node = tempData?.object(at: IndexPath.row)
伊谢尔伦伊谢尔伦2771 days ago395

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 09:49:15

    Start with capital IndexPath 是一个类型,并不是一个实例对象。 看起来你是想 indexPath.row

    reply
    0
  • Cancelreply