简体   繁体   中英

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.
but now i am converting it to 568 frame size for IOS 7 then it is not working.

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.

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

  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.
and after putting this the problem solved.
I am putting this for others...
Thank you guys for your time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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