UIScrollView 滚动背景图像速度加快两倍
在 XCode 中,我编写了一个使用带有背景图像的 UIScrollView 的应用程序。直到今天早上,一切都工作正常,但现在由于某种原因,当我滚动滚动视图时,背景图像的滚动量是滚动量的两倍。
希望这对任何人都有意义,因为我不知道我做了什么
In XCode, I have written an app which uses a UIScrollView with a background image. Up until this morning everything was working fine, but for some reason now, when I scroll the scroll view, the background image is scrolling twice the amount of the scroll.
Hope this makes sense to anyone, as I cannot figure out what I have done
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的。我已经解决了。我读了一些其他论坛也有同样的问题。我最终在滚动条上添加了一个 UIImage 作为子视图,并设置了它的图像。现在效果很好。
我想这可能是 4.3 之前的一个错误,现在 Apple 已经修复了它。
OK. I've worked it out. I read a few other forums which had the same problem. I ended up adding a UIImage as a subview on my scroller, and set the image of that. It works fine now.
I suppose that may have been a bug up to 4.3 and now Apple have fixed it.