显示多个 UIImageView 的 UIScrollView
我正在尝试实现具有多个图像的滚动视图。我放置了 UIScrollView 并放置了 3 个 UIImageView,其中最后一个超出了范围。我虽然可以滚动 srollview 组件的内容。我怎样才能做到这一点。我刚刚找到了滚动视图一次只显示一张图片的例子。我怎么能在 UIScrollView 中显示多张图片。
像这样的事情:
谢谢
I'm trying to achieve scroll view with multiple images. I put the UIScrollView and put 3 UIImageView which the last one is out of bounds. I though that i can scroll the content of the srollview component. How could i achieve this. I have just found examples where the scrollView show just one picture at the time. How could i have multiple pictures shown in UIScrollView.
Something like this:
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我正在寻找的正确方法是 setContentSize。我认为有一些设置可以自动对包含的内容执行此操作。但当格雷特扭动时,却发现一切都不是这样的。所以我认为这是唯一的方法。
OK the correct method which i was looking for is setContentSize. I thought that there is some setting to do this automatically to the included content. But as Grett writhed there is nothing like that. So i guest this is the only way do that.