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.
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)]; }