我的故事板中有一个WKInterfaceTable
。点击一行时,我对记录显示进行了更改,但想滚动到顶部。我该怎么做呢?
这是我的代码到目前为止的样子:
@IBOutlet var currentTable: WKInterfaceTable!
override func table(table: WKInterfaceTable, didSelectRowAtIndex rowIndex: Int) {
// Make changes to records...
// TODO: Scroll to the top???
}
currentTable
除非我缺少某些东西,否则我在表格的 API 中找不到任何东西?