Search code examples
iphoneuitabbarcontrollerretina-displayiphone-5autoresize

Tabbar not Resizing with iPhone-5 or Retina Display


Tabbar Issue in Retina or iPhone5 Screen

I have used tabbar controller using storyboard in application with iOS 6.

In normal or iPhone-4, Screen Layouts are fine. But in iPhone-5 or Retina display, I am stuck with Tabbar Controller layout..:(

Any Specific settings for this? Please tell me solution ASAP.

Thanks in advance.


Solution

  • This code works for me at least.

    Code ::

    if ([[UIScreen mainScreen] bounds].size.height == 568)
    {
        [view setFrame:CGRectMake(view.frame.origin.x, 519, view.frame.size.width, view.frame.size.height)];
    }
    else if ([[UIScreen mainScreen] bounds].size.height == 480)
    {
        [view setFrame:CGRectMake(view.frame.origin.x, 431, view.frame.size.width, view.frame.size.height)];
    }