How to create sections in WKInterfaceTable

后端 未结 3 1110
野趣味
野趣味 2021-02-06 02:03

How can we create sections in table as there is no delegate for it. And is there any other way for creating sections or do we have to use two tables.

3条回答
  •  臣服心动
    2021-02-06 02:51

    Table sections are not available from the WatchKit API. But section is just a group of cells with extra header/footer views, that can be simulated by using custom designed cells:

    WatchKit table with simulated sections

    I’ve created simple WKInterfaceTable extensions, that help to manage tables. Download Sample app.

提交回复
热议问题