WatchKit 拉动刷新 [英] WatchKit pull to refresh

查看:37
本文介绍了WatchKit 拉动刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以实现类似于 Watch 电子邮件应用程序的拉动刷新?如果不是,我应该如何处理更新 WKInterfaceTable?

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.

推荐答案

很遗憾,目前无法实现.WKInterfaceTable 与其他 WatchKit 类一样,在监视状态方面没有提供太多功能.没有办法监控滚动位置.

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.

目前您能做的最好的事情是在您的 UI 中添加一个按钮以启动数据刷新或使用强制触摸菜单.

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.

这篇关于WatchKit 拉动刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆