Search code examples
xcodeswiftuitabbarcontrolleruitabbaritem

Swift Missing tabbaritem image


I got a problem with a UITabBarController. When i load a uitabbarcontroller with this piece of code:

let vc = self.storyboard!.instantiateViewControllerWithIdentifier("tabBarViewController") as! TabBarViewController
self.presentViewController(vc, animated: true, completion: nil)

It works well but my only problem is the tabbaritem image.. The first one shows up normally but the second one (got two tabbar items) doesn't want to show.. Only after a couple of seconds.

Tabcontroller and tabbaritems are made in the storyboard. Not programmatically

Does anybody know what the problem could be?


Solution

  • Well the issue was iOS 9.2.. Updated my iPad to iOS 9.3.1 and it was fixed