Objective C:UIScrollView 内的 UIScrollView
是否可以在滚动视图中放置另一个滚动视图?
因为在我的滚动视图的一页中我需要放置可滚动图像。
我已经尝试过了,但它不滚动。
能做到吗?或者还有其他方法吗?
Is it possible to put another scrollview inside a scrollview??
because in one page of my scrollview i need to put scrollable images.
I already tried it but it's not scrolling.
Can it be done? or is there another way??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,当然。
我建议您查看 Apple 文档中的 PhotoScroller 示例 。
希望有帮助。
编辑
如果您提供一些代码,也许可以帮助您。
Yes, sure.
I suggest you to see PhotoScroller sample in Apple doc.
Hope it helps.
Edit
If you provide some code, maybe it is possible to help you.
您可以在另一个滚动视图中添加一个滚动视图。但是图像滚动可以通过单个滚动视图本身实现。您一定错过了设置 delegate 或设置 contentSize。请检查。
You can add a scroll view inside another scroll view. But image scrolling is possible with a single scroll view itself. You must have missed to set the delegate or set contentSize. Please check.
你可以在一个scrollView上添加一个scrollView,没关系。
滚动视图不滚动,您是否调用了setContentSize?
You can add a scrollView on a scrollView, it doesn't matter.
the scrollView is not scrolling, did you call setContentSize?