iphone storyboard tab bar controller become fat - iphone

I have a problem that my iphone project, my storyboard Tab Bar Controller, become different, like the picture.
When i delete the tab bar controller connect and reconnect that become normal, and i save the project, but when i open it, tab bar controller become different, how could i solve the problem, thanks!
The status bar is disappear, when the Tab Bar Controller become fat.

Related

View connected to UITabBarController not displaying tab bar

I have a UITabBarController. Originally I had it connected to 4 UINavigationControllers and each tab would function as expected. Each would navigate to the appropriate view and the tab bar would remain visible allowing the user to switch between tabs.
Now I wanted to connect another UINavigationController to the UITabBarController; essentially creating a fifth tab. I connected the UITabBarController to the new UINavigationController using a Relationship Segue successfully creating a fifth tab. However, when the fifth tab is pressed, the view is shown but there is no tab bar, thus preventing the user from navigating to any other screen.
The Bottom Bar setting is set to 'Inferred' just like the other views but it still does not show the tab bar. Why is the tab bar not showing and how can I make it appear?
Note that the UIViewController not displaying the tab bar has connections to it from other View Controllers but I don't see why this would affect the tab bar displaying.
Silly error on my part. The check box to Hide Bottom Bar When Pushed was checked so unchecking this solved the problem.

How to drag a navigation controller into a tab bar controller within a storyboard?

With xibs if you wanted to combine a navigation controller and tab bar controller you could just drag n drop the navigation controller into the tab bar controller.
However this is not possible now with storyboards (in Xcode 5). Is there some other way of doing it graphically?
Note I don't want the navigation controller to cause a tab to appear in the tab bar controller as will happen if you ctrl drag from the tab bar controller to the nag controller. I want a navigation bar and tab bar combined in one view.
There's dozens and dozens of tutorials for this out there, but they are all using nibs or old versions of storyboards/xcode, and when I try to do it for Xcode 5 it isn't possible. I was wondering if there's some new trick to get the same behavior as was previously possible.
In a storyboard, you can control-drag or right-click drag from the UITabBarController to the UINavigationController to add it as one of the view controllers for the tab bar.

Storyboard still shows 'ghost' tab bar item after tab bar removal

In our current project we had a tab bar controller, and every corresponding view had a tab bar controller. Lately we decided to use another navigation approach and we removed the tab bar controller.
Unfortunately the tab bar items in the views seem to be unremovable in the SB. In the running app they are not visible. We even tried to reconnect them to a tab bar controller, but no avail. Also, they don't show up in the document outline.
Is there anyone who can spread some wisdom how to remove them?
Try making the bottom bar to none in the attribute inspector of viewcontorller

Interface builder's not showing the navigation controller's navigation bar inside a UITabBarController

I recently switched to Xcode 4 from 3.2 and so far everything's been fine. There's one thing that's driving me nuts for the last hour or so. In my main window xib, I have a Tab Controller with 4 tabs. Three of them are regular UIViewControllers, but one is a UINavigationController. The problem is that with Xcode 4's Interface Builder, I can't see the navigation controller's navigation bar. I just get a window that says "Address List Table View Controller inside of a Contacts Navigation Controller". Why doesn't Xcode show the nav bar? In Xcode 3's IB I could see it, add buttons, change the title, etc. I can't seem to do that here.
If you watch this video, the person drags a UINavigationController into the tab bar and you see the bar just fine.
http://www.youtube.com/watch?v=aSBK8Zz6O4M
I set the custom class to my ContactsNavigationController, and the changes I make in the nav controller's xib don't reflect in the tab controller like the regular view controller's xib changes do.
So, I'm a little confused. I'm not new at this, I've been at Xcode programming since Day One, but I'm quite lost as to why the nav bar doesn't show up in the tab controller's view, and why when I set the nav controller to my custom class (even set the nib file), it doesn't work. Everything else does.
i just had this issue on an older project. i changed the size in the properties for the root view controller and this seems to have flushed interface builder, including it showing the navigation bar on views that were linked to nav controllers, but in IB had no nav bar displaying

Tab Bar will no work as a subview of another view but works fine as a subview of window?

I am trying to make a program with three subviews after the title screen. Two of the views are just standard nib files with UIViewController subclassed to control them, and the third is a Tab Bar view. I can't seem to get the tab bar items to display though. I walked through the Tab bar chapter in "Beginning iPhone Development" which adds the Tab Bar Controller right off the bat as a subview of Window in the app delegate and that works fine. What I want to do though is load up my rootView controller after the third section was chosen from the title screen and then add a Tab Bar view to that. Every time I do this though I get a blank Tab Bar with no tab bar items.
Any help you can provide would be greatly appreciated seeing as I've been working at this for a few days now.
Thanks
You can't push a tab bar controller to a navigation controller, which I assume is what you're trying to do. However, you can use a plain UITabBar and implement your own view switching in a UIViewController subclass (rather than a UITabBarController). See this related question.