活动指标问题

发布于 2024-09-13 05:29:49 字数 178 浏览 1 评论 0原文

我的应用程序主视图是一个表格视图,其中有几行可以向下钻取。

单击一行时,我使用核心数据获取子项目,这可能需要几分之一秒到几秒的时间,具体取决于获取的项目数量。 (0 到数千)

在获取需要很长时间时放置活动指示器是一个很棒的 UI,但仅放置一小会儿看起来不太好...

此问题的常见解决方案是什么?

My app main view is a tableview with several rows that can be drilled down.

When a row is clicked, I fetch the sub items using core data which could take a fraction of a second to several long seconds depending on how much items are fetched. (0 to thousands)

Placing activity indicator when fetch takes long time is a great UI while placing it for just one short moment isn't look so good...

What is the common solution for this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏辞 2024-09-20 05:29:49

You might wanna look at MBProgressHUD http://www.cocoadev.com/index.pl?MBProgressHUD
This is a sweet Solution for your issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文