ios - Swift - 处理 subview

标签 ios swift uiviewcontroller uicontainerview

我在使用 subviews 时遇到问题.现在我有一个 ViewController和一个 containerView .问题是我的 containerView在我的 ViewControlller 之上所以我无法点击 button在我的里面 ViewController .

View Controller :

enter image description here

更新

enter image description here

最佳答案

我通过为“底部栏”和“设置”按钮设置高度限制来解决它,我添加了第二个 ContainerView。蛮力但它有效:)

关于ios - Swift - 处理 subview ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58890763/

相关文章:

iphone - 使一类特定的 View Controller 在选项卡栏应用程序中自动旋转,但强制所有其他类的 View Controller 保持纵向

ios - 创建 UIViewController 的子类

ios - 快速字典错误

ios - 如何在 Xcode Storyboard上显示一段文字?

ios - 当我垂直向下滚动时, ScrollView 重置的位置

ios - 将数据从我的 viewcontroller 类传递到放置在同一场景中的自定义类 UIView 时,“包装可选值时出现意外的 nil”

swift - subview Controller 和边距

ios - 如何检测 UIview 失去焦点或在 swift 4 中获得焦点?

ios - 可以用OpenGLES2而不是OpenGLES1重写GLPaint

ios - 为 Framesetter 提供正确的行间距调整