NavigationBar is under the statusbar on iOS 9 and 10 - ios

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.

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.

iOS 10 - Black navigation bar when first transitioning to WKWebView

I am experiencing weird bug on iOS 10.0 Simulator.
I am using 8.0 beta (8S128d).
I have some places in my app where I use WKWebView in order to present a web page. For some reason, first (and only first) transition to those views makes navigation bar black. I can see the transition starting and freezing for a moment, then a black navigation bar appears. When I go back and go to that view again, everything works.

Xcode 7.3.1 view controller in storyboard disappeared

I'm making an iOS app using Bluetooth. The app is supposed to show a list of Bluetooth device when the button "Bluetooth" is clicked. The list is a tableView shown as a popOver view controller.
When I turn on my computer the next day, the popOver view controller disappeared, but you can still see it in the list on the left side(Bluetooth device scene), and it is there when running it in simulator. But it is not visible or clickable in the interface builder.
I did nothing but closed my laptop, and opened it the next day. It's not that I'm using the wrong w/h size. I've tried that. Anyone know what's going on? Thanks a lot.
Screen shot of my storyboard

Xcode 7 GM Show Segue Turns Into Modal Segue

I have an app with a navigation view controller and once a cell is tapped on, a screen is pushed on top of it. However, when testing this app on a simulator and on multiple devices, the push segue somehow turns into a modal segue. These pictures will show a gist of what is happening:
Table View:
What is supposed to happen (Show segue):
What happens instead (Modal segue):
I am running this on an iOS simulator but for my app the result is the same. I have seen people post about this issue taking place on iOS 7, but is this supposed to happen with iOS 9?? Please help.
Thanks!
I have found a solution. It appears, that now, in Xcode 7, you should make a segue not to navigation controller, but to your viewController directly, in order to achieve desired push segue.

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

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.

Resources