didselect viewcontroller not called swift
Problem:
didselect viewcontroller not called swift for my tabbar view controller
Solution:
import Foundation
import UIKit
class TabBarVC:UITabBarController {
override func viewDidLoad() {
}
override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
if let vc = self.viewControllers?[self.sel
vc.refresh()
}
}
}
Comments
Post a Comment