UIScrollView 中图像的旋转
旋转 iPhone 时调整 UIScrollView 内图像的大小。
我在 UIScrollView 上放置了一系列图像(一些图像放置在另一个图像的顶部)。当我在某个页面旋转滚动视图时,层次结构中最顶层的图像预计会旋转,但图像会转到滚动视图的第一页。任何有关可能出现问题的帮助将不胜感激。
谢谢 德克维
resizing images inside UIScrollView when rotating the iphone.
I have a series of images placed on the UIScrollView (some images are placed one on top of the other). When I rotate the scrollview at some page, the topmost image on the hierarchy is expected to rotate which happens but the image goes to the first page of the scrollView. Any help on what could be going wrong would be appreciated.
thanks
DKV
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为对其框架行为不当的 imageView 未添加到正确的超级视图中。我认为你应该检查所有imageView是否都添加到scrollView上(如果你想在另一个imageView上方显示一个imageView,使两个imageView的框架相同,避免将一个imageView添加到另一个imageView上)。
I think the imageView which is misbehaving w.r.t to its frame is not added into correct super view. I think you should check that all imageView are added onto scrollView (if you want to show one imageView above another imageView make frame of both the imageView same, avoid adding one imageView onto another imageView).