Closed pillade closed 6 years ago
Tabbar worked. But animation effect lost...
public func viewWillAppear() {
super.viewDidLoad()
self.didLoadView = true
self.initializeContainers()
}
> fatal error: items must inherit RAMAnimatedTabBarItem:
actually error occurs only when build on iPhone simulator. But it works well in iPad device & simulator.
If you have your TabController in a Storyboard and each UITabBarItem is added in others storyboards the app crashes because item in tabbar are 0 in this function: createViewContainers().
A solution is to move initializeContainers() call in RAMAnimatedTabBarController from viewDidLoad to viewWillAppear.