0

I've created a custom tabbar but my tabbar isn't exactly on bottom of the screen. I don't know where the mistake can be...but on the bottom of the screen on a height of 2-3 pixels I see the standard tabbar (you can see a highlighted curves on active tabbaritem)...any ideas?

Same on all devices.

Here Screenshot: enter image description here

kurtanamo
  • 1,808
  • 22
  • 27

2 Answers2

1

Perhaps your background image just has the wrong size!? You cannot change the height of the tabbar. Its always 49 points high (in portrait). Means 98px in Retina.

calimarkus
  • 9,955
  • 2
  • 28
  • 48
  • why not? height is 51 - on another project it has worked...sry for no screenshot, cause its a important project... – kurtanamo Nov 16 '12 at 11:22
0

Please check in Custom Tabbar Class that you are using if "Y" position and height are okay. Y position should be 431px for iPhone and for iPad Portrait:975px and Landscape:718px

Also check the images that you are using to be displayed in tabbar have height of 49px for device without retina and 98px for device with retina display

iDK
  • 91
  • 4
  • hi my images in tabbar are 51px, but thats not the problem, height is not important (its variable). I don't have a custom tabbar class, it's only a method called: (createCustomTabBar) , that's it... – kurtanamo Nov 16 '12 at 14:45
  • how do you set images in Tabbar? – iDK Nov 19 '12 at 04:02
  • i will try this now: http://felipecypriano.com/2012/02/27/how-to-customize-uitabbar-on-ios-5/ .... – kurtanamo Nov 19 '12 at 07:57