I want to use a UITabBar to let the user navigate a single UIWebView. Is this possible or would I be better off using a UIToolbar? If
UITabBar
UIWebView
UIToolbar
I had to add in the viewDidLoad() function the reference for the delegate:
self.tabBar.delegate = self
Otherwise the function func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) would never be called.
func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem)