检查表格行是否在Apple Watch App上可见

时间:2016-07-24 16:09:05

标签: swift watchkit apple-watch watch-os-2

我有一个应用程序,我必须检查表的第一行是否可见。我知道如何在iOS上做到这一点,但我需要在手表操作系统中使用它。

1 个答案:

答案 0 :(得分:0)

头文件提供watchOS表的可用选项,没有任何内容可以检查行是否可见,如果这是您想要的重要功能,则提交雷达:

@available(watchOS 2.0, *)
public class WKInterfaceTable : WKInterfaceObject {


public func setRowTypes(_ rowTypes: [String]) // row names. size of array is number of rows

public func setNumberOfRows(_ numberOfRows: Int, withRowType rowType: String) // repeating row name


public var numberOfRows: Int { get }

public func rowController(at index: Int) -> AnyObject?


public func insertRows(at rows: IndexSet, withRowType rowType: String)

public func removeRows(at rows: IndexSet)


public func scrollToRow(at index: Int)


@available(watchOS 3.0, *)
public func performSegue(forRow row: Int)
}
相关问题