Ios Swift 3错误“;无法调用非函数类型的值';UtableView'&引用;

Ios Swift 3错误“;无法调用非函数类型的值';UtableView'&引用;,ios,swift,uitableview,Ios,Swift,Uitableview,我正试图调用超类'methodtableView(uquo:editActionsForRowAt:indexath:),但我得到“无法调用非函数类型'UITableView!'的值” 调用函数时,传递的不是类型,而是该类型的值: override func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { super.

我正试图调用超类'method
tableView(uquo:editActionsForRowAt:indexath:)
,但我得到“无法调用非函数类型'UITableView!'的值”

调用函数时,传递的不是类型,而是该类型的值:

override func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? {
    super.tableView(tableView, editActionsForRowAt: indexPath)

您正在调用类名(
UITableView
)为变量的方法,而不是变量本身(
tableView
)。请尝试以下方法:

super.tableView(tableView, editActionsForRowAt: indexPath)

您为超级函数使用了错误的名称,请使用以下名称:

override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {
    super.tableView(tableView, editActionsForRowAtIndexPath: indexPath)

    let EditAction = UITableViewRowAction(style: .Normal, title: "Edit") { (UITableViewRowAction, IndexPath) in
       // ...
    }

    return [EditAction]
}

“对不起我的英语,我是意大利人”你的英语很好。是斯威夫特,你说的不对。斯威夫特3的名字不一样。我是斯威夫特3号。
super.tableView(tableView, editActionsForRowAt: indexPath)
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {
    super.tableView(tableView, editActionsForRowAtIndexPath: indexPath)

    let EditAction = UITableViewRowAction(style: .Normal, title: "Edit") { (UITableViewRowAction, IndexPath) in
       // ...
    }

    return [EditAction]
}