iOS大标题不能与scrollView后面的背景视图一起使用 [英] iOS large title not working with background view behind the scrollView

查看:73
本文介绍了iOS大标题不能与scrollView后面的背景视图一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用大型标题,在主视图中我有一个scrollView和一个背景图像后面的scrollView视图。当我这样做时,大标题不起作用(滚动时总是很大)因为scrollView不是主视图中的第一个元素。如果我更改顺序,背景图像将覆盖滚动视图。

I'm using large titles, in the main view I have a scrollView and a view behind the scrollView that is a background image. When I do this, large titles doesn't work (are always big while you scroll) because the scrollView is not the first element inside the main view. If I change the order, the background image covers the scroll view.

任何解决方案?谢谢!!

Any solutions? Thanks!!

推荐答案

我找到了一个解决方案,我在滚动视图中移动了背景视图,并附加到主视图中约束。

I found a solution, I moved the background view inside the scroll view and I attached to the main view with constraints.

这篇关于iOS大标题不能与scrollView后面的背景视图一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆