I found this weird behaviour in my app.
App View Layout:
UITabBarController (RootViewController)
Tab1 = Navigation Controller with TableViewController
Tab2 = Navigation Controller with TableViewController
If Tab1 table view cell is click I push a detail view controller and hide tab bar items and display UIToolbar
If you click the home button, of switch to another app and come back to the app, the UIToolbar position has changed and is now sitting above the tabbar items which are invisible at this point.
More Details:
My initial view controller is a UITabBarController which content 2 tabs.
Each tab content 1 view controller embedded into his own navigation controller
if you click on a tableviewcell, I want to push a detail view controller and hide the UITabBarController items,
in the prepare for segue I passed hidesBottomBarWhenPushed = true, which works fine
in my detail view controller (a simple UITableViewController) I need to show now a UIToolbar
which I can do like that in viewWillAppears
navigationController?.setToolbarHidden(false, animated: true)
UITabBarController (RootViewController)
Tab1 = Navigation Controller with TableViewController
Tab2 = Navigation Controller with TableViewController
If Tab1 table view cell is click push detail view controller but hide tab bar items and display UIToolbar
Now the bugs, we are now in the detail view controller, the tab bar items have been hide and we can see a UIToolbar a the bottom
Like I said previously, if you switch app and come back into the app, the UIToolbar will now be place above the TabBarItems which is invisible at this point
initial tab bar
https://www.dropbox.com/s/9lsk908drvnsw07/TabBarItems.png?dl=0
detail after pushing detail (tabbaritems are now hidden and I display toolbar)
https://www.dropbox.com/s/5nuaad5pe3u68e5/DetailsVC.png?dl=0
detail after resuming the app, just need to go back to home menu or change to another app and come back
https://www.dropbox.com/s/odfcog8avazvp64/DetailsVC%20after%20app%20switching.png?dl=0
thanks
alex