Pass data from Parse tableview to WatchKit

前端 未结 1 567
情话喂你
情话喂你 2021-01-25 00:13

I\'m using Parse to create this table view, and am trying to figure out how to get the table data, so I can pass it into the WatchKit

相关标签:
1条回答
  • 2021-01-25 00:26

    In you WatchKit extension you need to set up your table differently. On iOS the UITableView queries your datasource as needed for cells. On WatchKit you need to pass all of the data for a table at one time to you WKInterfaceTable. I am not going to go into detail here for how to set up you table as you can find some great info here https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Tables.html.

    Also, I would suggest that you do your parse query in the background and then update your table after the data has returned.

    0 讨论(0)
提交回复
热议问题