dalezak / turbo-ios-base

Turbo-iOS base project that's entirely driven from your backend Rails app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TabBar not showing on devices with a home button

justinlyman opened this issue · comments

The TabBar is not showing on devices that have a physical home button such as the iphone SE, 8, etc.

This seems to be related to .replace, if I comment out loadHome() in viewDidLoad() it shows the tabBar. If I navigate to one of my buttons, the tabBar does not show once the replace loads. If I navigate to a page within that view with advance, the TabBar then shows.

Something else i found is that if you rotate the screen, the tabBar shows up.

I was able to find a solution, adding tabBar.invalidateIntrinsicContentSize() to the loadTabs function resolved the issue. I will submit a pull request.