14

Possible Duplicate:
iPhone 5 TabBar not functioning in proper position

I added the magic Default-568h.png to my project and my App resized itself. So far so good. But: My UITabBar is not working anymore. It's delegate is not called. I first thought it is covered by another view but it isn't. The Delegate is there and it's all working on my "old" iPhone 4. Any ideas?

Community
  • 1
  • 1
plaetzchen
  • 757
  • 6
  • 22

3 Answers3

20

You need to do two things:

1) You need to go to your main xib, click on the window object, and set the "Full Size at Launch" property.

2) If you are converting an older project, you also have to make sure that your window rootcontroller is set to the tabbarcontroller. You can do that by dragging in Interface builder or programatically in your application applicationDidFinishLaunching method.

Ed Fernandez
  • 1,823
  • 2
  • 14
  • 18
  • 2) Is related to autosynthesis and not to unclickable Tab Bar, though. I know this because I just updated an app written in an older Xcode (I got the warning for the tab bar rootVC) and the Tab Bar worked after step 1. – Henrik Erlandsson Mar 05 '13 at 09:05
10

Make sure the "Full Screen at Launch" option is checked for your main window. Head to Interface Builder and follow the 1, 2, 3 below.

enter image description here

nevan king
  • 112,709
  • 45
  • 203
  • 241
-2

Define a height of the TabBar.

riyuk
  • 174
  • 1
  • 6