Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NJHu committed Jun 11, 2018
1 parent 0ec4580 commit ee9d9b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NJDouYu/NJDouYu/Classes/Main/NJTabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ extension NJTabBarController {
addChildVC(childController: NJMeViewController(tableViewStyle: UITableViewStyle.grouped), tabBartitle: "我的", image: "btn_user_normal", selImage: "btn_user_selected")
}
private func addChildVC(childController: UIViewController, tabBartitle: String, image: String, selImage: String) {
childController.tabBarItem.image = UIImage(named: image)
childController.tabBarItem.selectedImage = UIImage(named: selImage)
// childController.tabBarItem.image = UIImage(named: image)
// childController.tabBarItem.selectedImage = UIImage(named: selImage)
childController.tabBarItem.image = UIImage.nj_imageFromXcassets(name: image, bundleClass: self.classForCoder)
childController.tabBarItem.selectedImage = UIImage.nj_imageFromXcassets(name: selImage, bundleClass: self.classForCoder)
childController.tabBarItem.title = tabBartitle
childController.tabBarItem.titlePositionAdjustment = UIOffset(horizontal: 0, vertical: -3);
tabBar.unselectedItemTintColor = UIColor.lightGray
Expand Down

0 comments on commit ee9d9b7

Please sign in to comment.