UIView的大小调整不能填补iPhone 6窗口 [英] UIView Not Resizing to fill iPhone 6 Window

查看:182
本文介绍了UIView的大小调整不能填补iPhone 6窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在的.xib文件中有一个的UITableView 。我有这样的密码保护,通过与另一的UIView 具有的UITextField 模糊了。一旦密码已输入,我删除从上海华UIView的。然而,我遇到的一个问题是,的UIView 上没有覆盖所有的的UITableView 6和6加。我怎么能去这样做,因为UIView的是不是在厦门国际银行的主要观点,而只是添加?我使用自动布局,并告诉它以脚开头和结尾,但它不工作。

I have a UITableView in my .xib file. I have this password protected, by obscuring it with another UIView that has a UITextField. Once the password has been entered, I remove the UIView from the superview. However, I am running into an issue that the UIView is not covering up all of the UITableView on the 6 and 6 Plus. How can I go about doing this, given that the UIView is not the main view in the xib, and simply added? I use auto layout and told it to pin to leading and trailing, but it isn't working.

推荐答案

我终于设法解决这个我自己。我已经告诉它一切脚,使呈现@NRitH回答,因为没有用。我只是简单地添加

I finally managed to solve this on my own. I already had told it to pin everything, so that rendered @NRitH answer as useless. I simply added

    [password setFrame:self.navigationController.view.bounds];

之前添加视图作为一个子视图,和它的工作完美。

before adding the view as a subview, and it worked perfectly.

这篇关于UIView的大小调整不能填补iPhone 6窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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