tab bar controller is not shows the tab buttons after updating xcode - ios

I was developing an application which uses UI TabBar controllers and I have updated my mac Osx and the Xcode to the version 5.1.1. before these updates , my application worked fine.
now when i run the application after the update, my tab buttons (which should be there at the bottom of the simulator) do not show. i did not change anything in my project. just above updates only i did. i checked my storyboard to check whether those tab buttons are there. unfortunately they are not there.. the only thing i can see is like the below
before the update my storyboard looked like the following
now it looks like this
you can see in the tab bar controller there are no tab buttons like the above screenshot..
my application is now like this when it runs...
What's going on?

if you change all the TabBar item's icon than you can see tabBar.

Related

xcode ios simulator does not show updated tab bar controller

I am trying to create an ios app that consists of a tab bar controller with three buttons for 3 different pages. However, when I run the program the first few seconds shows it correctly but then it changes to a simple tab bar controller.
on left is my tab bar controller and on the right is shown by the simulator
You've edited the wrong storyboard. You have edited the Launch Screen storyboard. So during launch it shows your 3-tab interface. But then the app starts running and the Main storyboard is used. You didn't edit that one, so we are back to the plain vanilla Tabbed App template.
What you should have done was to edit the Main storyboard.

Xcode Project Settings Preventing TabBar at Bottom of iPhone X Models?

I have an old project that I've been working on and off on for about 4 years now - the project has gone through many upgrades of XCode versions from 6 to 10 (I'm now using XCode 10.2.1 with 12.2 SDK). The main problem I'm having with it is that it utilizes a Tab View Controller to switch tabs, and no matter what I do, I cannot get the tab bar to appear on the bottom of an iPhone X family device correctly: it appears much higher than it should.
To try and finally narrow down the problem, I've essentially temporarily "replaced" all code and storyboard items from the project to see if anything will move the tab bar to where it's supposed to (if I just create a blank new project with a tab bar controller, the tab bar does appear where it should). I created a test storyboard with just a Tab Bar Controller going to one navigation controller (no constraints have been put in). There is no viewController codes attached to them. I've replaced the app delegate with a "blank" app delegate so there are essentially no extraneous code or restraints there at all. And I still get the tab bar moved:
This happens on the simulator and the device, and there is no code or storyboard setting that's doing this (this same setup on a new project puts the tab bar in the right place).
I've looked around in the Build Settings and other properties that I may have missed to see if I constrained something years ago that may affect this, and didn't see anything.
Is there anything I should be looking for in the project settings that would do this?
I don't want to rebuild the project in a new project - there are many linked libraries, certificates, cocoapods, storyboard items, and I know it would be horrible to try and put it all back in one piece.
My Deployment Target is set to iOS 11, Devices: iPhone, Base SDK: iOS
Any help would be greatly appreciated!
This is usually caused by not having a correct launch image for the iPhone X. The easiest way to fix this is to tell the app target not to use launch images (from the app bundle or from the asset catalog) but to use the LaunchScreen.storyboard instead. (If you don't have one, make one; be sure to set it as a launch screen storyboard by clicking Use As Launch Screen and configure your target to point to it. Examine a plain vanilla new project to see what I mean.) You might not want to keep things that way in the long term but at least it will allow your app to launch to the correct size on all devices.

NavigationBar is under the statusbar on iOS 9 and 10

I've been developing an app for the past few months, and I was always testing on my iOS 11 device and simulators. Since we are close to public release, I decided to test the app on iOS 9 and 10 simulators to make sure everything is ok.
To my disapointment, the core element of the app is broken: Its an app that displays a list of articles in tableviews, using a TabBarController. More article categories can be accessed through the side menu. However, when I display a VC form the side menu, for which I create the VC, embed it in a NavigationController and then add it in the TabBarController and make it the selected tab, the NavBar is under the status bar and the tableview's content insets extend under the tabBar, which also breaks my TabBar and creates a whole lot of other problems.
The weird thing is that after navigating to the next VC, the whole statusbar situation is fixed, so I'm guessing something is initially off with the NavBar that gets fixed once a second VC is pushed.
Does anyone have any idea on how to fix this bug? On iOS 11 everything works perfectly, while on iOS 9 and 10 only when a new VC is pushed, the error is fixed. Please note that I'm not using a UITableViewController but a ViewCOntroller with an embeded TableView, since I also need to add othr views at the bottom of my view controller.

Tab Bar Controller Gray

I am using Xcode 5.1.1, Deployment to SDK 7.1. For some reason when I add a Tab Bar Controller, the Items in the bottom does not show up, all bottom bar is gray, the View Controllers associated has the same gray bar, and do not show the items. When I run the simulator the Items Bar is normal. Already tried to change to global tint, re-start Xcode, new project and still the same.
I really appreciate any suggestion.
I had this problem before and after search found it is a bug in Xcode 5. After I reinstall Xcode the problem did not occur anymore.

Weird Bug in XCode StoryBoard after upgrading to iOS SDK 7.1

Last night I updated XCode and the iOS SDK.
It looks like it messed up the UINavbar on the storyboard, here is a pic:
It shows two titles overlapping, if I delete the title , then there is still another one in the background, Im not able to remove that second one.
The strange part is it magically disapear, if I run the app.
XCODE version --> Version 5.1 (5B130a)
iOS SDK---------> Version 7.1
Yes, there's a new property for the uiviewcontrollers named "exteded edges" you must uncheck this in the interface builder inside the uiviewcontroller preferences. Or by inserting this code in your view did load. This will tell the controller not to draw the view under the navigation bar.
if ([self respondsToSelector:#selector(edgesForExtendedLayout)]){
self.edgesForExtendedLayout = UIRectEdgeNone;
}
I checked again and there was an extra navigation bar, its weird that It shows only after I upgraded, I think something happen with that view because I embedded it into a navigation controller.

Resources