iOS版:一个厦门国际银行视图和它的父之间添加约束 [英] iOS: add constraints between a xib view and its superview

查看:142
本文介绍了iOS版:一个厦门国际银行视图和它的父之间添加约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加从厦门国际银行文件的视图到表格视图控制器,然后把这个拿出来看,这样,当用户从导航栏下点击一个按钮视图向下滚动可见。下面是滴下来的观点:

I'm adding a view from a xib file to a table view controller and then placing this out of view so that when the user taps a button the view scrolls down from under the navigation bar to be visible. Here's the view that drops down:

这工作正常在iPhone 6,但比这更小和下拉视图失去了约束,并期待所有混乱的象下面这样:

This works fine on iPhone 6 but anything smaller and the drop down view loses its constraints and looks all jumbled up like below:

我相信是这样的话,因为有被设置任何限制下拉视图和表视图(上海华)之间。我用的是 PureLayout 然而,由于iOS8.3 / X code 6.3这似乎并没有做什么了。

I believe this is the case because there are no constraints being set between the drop down view and the table view (the superview). I was using PureLayout however since iOS8.3/Xcode 6.3 this doesn't seem to do anything anymore.

哪些选项我有添加约束,因此与顶部对齐,左,上海华的右边缘向下拉看法?

What options do i have for adding a constraint to drop down view so it is aligned with the top, left and right edges of the superview?

感谢

推荐答案

解决:我结束了在创建用户为不同的屏幕尺寸只设置了厦门国际银行视图的框架

Solved: I ended up just setting the frame of the xib view manually upon creation for the different screen sizes

这篇关于iOS版:一个厦门国际银行视图和它的父之间添加约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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