Objective C:检测 UIScrollView 上的触摸事件

发布于 2024-12-27 09:39:18 字数 81 浏览 3 评论 0原文

我正在制作一个书籍应用程序,使用滚动视图进行分页,但我在检测触摸事件时遇到问题,所有触摸事件都不起作用。有没有一种方法可以在滚动视图上实现触摸事件?

I am making a book application using a scrollview for paging but i am having problem detecting touch event on it all the touch events are not working. is there a way that i could implement touch event on scrollview?

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

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

发布评论

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

评论(1

木槿暧夏七纪年 2025-01-03 09:39:18

当你想构建一个读书应用程序时。
我建议您不要使用 UIScrollView ,而是直接使用 UIPageViewController

这里有一些推荐链接。
http://www.techotopia.com/index.php/An_Example_iOS_5_iPhone_UIPageViewController_Application

http://www.techotopia.com/index.php/Implementing_a_Page_based_iOS_5_iPhone_Application_using_UIPageViewController

希望有所帮助

As you want to build a book reading application.
I will suggest that rather than going with UIScrollView you can directly go for UIPageViewController

here are some referral link.
http://www.techotopia.com/index.php/An_Example_iOS_5_iPhone_UIPageViewController_Application

http://www.techotopia.com/index.php/Implementing_a_Page_based_iOS_5_iPhone_Application_using_UIPageViewController

hope that help

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