简体   繁体   English

按图像视图滚动视图 ios

[英]scroll view by image view ios

I create scrollView in viewController with zero constraints and after I added an imageView of same size and I give that imageView size to equal width and heights with scrollView after I give height priority 250 scrollView is working perfect when I was scrolling the imageView on top and bottom its preview is white space.创建scrollViewviewController零个约束和后我加入imageView相同大小的,我给该imageView大小,以equal width and heightsscrollView后我给高度优先250 scrollView ,当我滚动正在完美imageView顶部和底部它的预览是空白。

在此处输入图片说明

Check Your Top Constraints of imageView its bind with SuperView OR Safe Area??检查你的 imageView 的最高约束,它与 SuperView 或安全区域的绑定? if its bind with Safe Area then change with SuperView.. see below image for more information如果它与 Safe Area 绑定,则使用 SuperView 进行更改。有关更多信息,请参见下图

https://i.stack.imgur.com/fJfJv.png

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM