ios - UITabBarController display -


i newbie in ios development. developing application using tab bar controller. setting frame tab bar controller programmatically when switch iphone 5 there white space created between tab bar items , main view. following screen shot of application on iphone 5 simulator.

screen shot on 4.5 retina display simulator

following line of code setting frame uitabbarcontroller:

[roottabbarcontroller.view setframe:cgrectmake(0,-20,320, 480)]; 

put line of code , check it,you have set frames accordingly.

 

if ([[uiscreen mainscreen] bounds].size.height == 568)      {         [roottabbarcontroller.view setframe:cgrectmake(0,0,320, 568)];      }  else      {         [roottabbarcontroller.view setframe:cgrectmake(0,0,320, 480)];      } 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -