WatchKit pull to refresh

十年热恋 提交于 2019-12-10 15:12:54

问题


Is it possible to implement a pull to refresh similar to the Watch email app? if not how else should I handle updating a WKInterfaceTable?

I don't really want the app to do an automatic refresh on load as this defeats the purpose of having a quick watch app.


回答1:


Unfortunately it isn't possible at this time. WKInterfaceTable, like other WatchKit classes, doesn't offer much in the way of monitoring state. There's no way to monitor the scroll position.

Best you could do currently is add a button to your UI to initiate a refresh of the data or make use of the force touch menu.



来源:https://stackoverflow.com/questions/30050960/watchkit-pull-to-refresh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!