iphone疑问中下拉刷新表格视图

发布于 2024-12-12 09:58:39 字数 286 浏览 6 评论 0原文

我正在创建一个圣经应用程序。圣经中有很多章节(例如创世记、出埃及记等)。

我为每个章节加载创建了一个按钮。我在表格视图单元格中加载经文和章节。当点击按钮时,它会加载下一章,反之亦然。我将按钮放在表视图的页脚中,但我想通过下拉刷新来更改此功能。我知道 Facebook 和 Twitter 等许多应用程序都使用下拉刷新。我也在之前的应用程序中实现了这一点,但我需要在用户下拉表格时更改章节。当拉下来时,它会切换到下一章。

我在袖珍剑圣经应用程序中看到了这个功能;上拉表示下一章,下拉表示上一章。我如何在我的应用程序中实现这一点?

I am creating a bible application. There are lots of chapters in the bible (e.g. genesis, exodus etc).

I created a button for each chapter loading. I load the verses and chapter in table-view cell. When the button is tapped it loads the next chapter and vise versa. I put the button in the footer of the table-view, but I want to change this functionality with pull down to refresh. I know pull down to refresh is used in many applications like Facebook and Twitter. I've also implemented this in my previous applications, but my need is to change the chapter when the user pulls down the table. When pulled down it changes to the next chapter.

I saw this functionality in the pocket-sword bible application; pull up for next chapter and pull down for previous chapter. How can I implement this in my application?

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

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

发布评论

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

评论(2

仙气飘飘 2024-12-19 09:58:39

虽然这样可以很好地工作。我认为这不是导航的理想实现。

  • 你会怎样回到上一章?
  • 用户如何知道下拉进入下一章?

这听起来和感觉都是错误的。

我觉得最好在导航栏或工具栏中实现左右滑动以跳转到下一页/章节,甚至下一个/后退按钮。这是相当标准的。

另一种选择是复制 iBooks 界面,使用底部的“分页栏”跳转到章节(不确定它的正确名称是什么)

While that would work fine. I don't think it's the ideal implementation for navigation.

  • How would you go back to the previous chapter?
  • How would users know to pull down to go to the next chapter?

It just sounds and feels wrong.

I feel it would be better to implement swiping left and right to jump to the next page/chapter or even next/back buttons in either a navigation bar or toolbar. This is fairly standard.

Another option is to replicate the iBooks interface for jumping to chapters using the "paging bar" at the bottom (not sure what the correct name for it it)

故事灯 2024-12-19 09:58:39

我们必须放置与我们用于在按钮单击中指导下一章的代码相同的代码,该代码必须放置在 _(void)refresh 方法中。当我们下拉表格时,它会自动重定向到下一页 -查看。我们可以向此功能添加什么功能。谢谢。

we have to put same code thAT IS what code we used for directing next chapter in button-click,that code have to be put inside the _(void)refresh method.It automatically redirected to the next page when we pull down the table-view.What ever functionality we can add to this function.Thanks.

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