简体   繁体   English

在iOS 7中的故事板上设置UIWindow和UIview的Frame

[英]Set UIWindow and UIview's Frame in storyboard in IOS 7

I have an application which has storyboard. 我有一个带有情节提要的应用程序。
it works completely fine in 480 frame size of height. 在480帧高的尺寸下,它可以完全正常工作。
but now i am converting it to 568 frame size for IOS 7 then it is not working. 但现在我将其转换为ios 7的568帧大小,然后它不起作用。

The self.window.frame.size.height and self.view.frame.size.height is also coming 480 and its also coming in middle of the view. self.window.frame.size.heightself.view.frame.size.height也即将480和其在视图的中间还来。

It looks like this... 看起来像这样...

在此处输入图片说明

I am trying first time storyboard. 我正在尝试第一次情节提要。
I changed programmatically the height of Window and View but its not working. 我以编程方式更改了窗口视图的高度,但无法正常工作。
I tried below method in viewDidLoad but its not working too for this case 我在viewDidLoad中尝试了以下方法,但在这种情况下也无法正常工作

  if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
  {
      self.edgesForExtendedLayout = UIRectEdgeAll;
  }  

Any kind of help is appreciated. 任何帮助都将受到赞赏。
Thank you. 谢谢。

I got the Problem... 我有问题了...
i just left the image named "Default-568h@2x.png" in my project bundle for Launch Image. 我刚刚在我的项目包中将名为“ Default-568h@2x.png”的图像留在了启动图像中。
and after putting this the problem solved. 然后把这个问题解决了。
I am putting this for others... 我把这个给别人...
Thank you guys for your time. 谢谢你们的时间。

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

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