Objective C:检测 UIScrollView 上的触摸事件
我正在制作一个书籍应用程序,使用滚动视图进行分页,但我在检测触摸事件时遇到问题,所有触摸事件都不起作用。有没有一种方法可以在滚动视图上实现触摸事件?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你想构建一个读书应用程序时。
我建议您不要使用
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 forUIPageViewController
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