iPhone 5 TabBar not working after adding [email protected] [duplicate]
Asked Answered
A

3

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?

Akbar answered 24/9, 2012 at 13:29 Comment(3)
Set Window to Full Size At Launch in the XIB. Worked for me #12544067Fraternity
Yes, "Full Screen at Launch" is the medicine (:Sottish
@TihomirSimeonov - you should make that an answer. Thank you!Vermiculate
U
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.

Urine answered 29/9, 2012 at 18:59 Comment(1)
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.Flog
R
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

Rejoice answered 2/10, 2012 at 22:25 Comment(0)
G
-2

Define a height of the TabBar.

Goethe answered 24/9, 2012 at 14:6 Comment(1)
The TabBar has a frame of 0, 0, 320, 49Akbar

© 2022 - 2024 — McMap. All rights reserved.