|
@@ -238,26 +238,6 @@ class BaseTabbarViewController: NSObject {
|
|
|
NotificationCenter.default.post(name: NSNotification.Name("MineModuleTop"), object: nil)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-// func tabBarViewController() -> BaseTabbarViewController {
|
|
|
-// let tabBarViewController = BaseTabbarViewController()
|
|
|
-//
|
|
|
-// let v1 = ShoppingMallViewController()
|
|
|
-// let v2 = ShoppingCartViewController()
|
|
|
-// let v3 = MineViewController()
|
|
|
-//
|
|
|
-// let n1 = BaseNavigationViewController.init(rootViewController: v1)
|
|
|
-// let n2 = BaseNavigationViewController.init(rootViewController: v2)
|
|
|
-// let n3 = BaseNavigationViewController.init(rootViewController: v3)
|
|
|
-//
|
|
|
-// tabBarItemStyle(navc: n1, normalImg: "tabbar_home", selectorImg: "tabbar_home_pre", title: "首页")
|
|
|
-// tabBarItemStyle(navc: n2, normalImg: "tabbar_shopping", selectorImg: "tabbar_shopping_pre", title: "购物车")
|
|
|
-// tabBarItemStyle(navc: n3, normalImg: "tabbar_my", selectorImg: "tabbar_my_pre", title: "我的彩虹")
|
|
|
-//
|
|
|
-// tabBarViewController.viewControllers = [n1, n2, n3]
|
|
|
-// return tabBarViewController
|
|
|
-// }
|
|
|
-
|
|
|
|
|
|
private func tabBarItemStyle(navc : BaseViewController, normalImg : String, selectorImg : String, title : String){
|
|
|
navc.tabBarItem = UITabBarItem.init(title: title, image: UIImage(named:normalImg), selectedImage: UIImage(named:selectorImg))
|