1.tabBar选中文字颜色
//设置选中文字颜色
nav.tabBarItem.setTitleTextAttributes([NSAttributedString.Key.foregroundColor:UIColor.red], for: .selected)
1.tabBar选中文字颜色
//设置选中文字颜色
nav.tabBarItem.setTitleTextAttributes([NSAttributedString.Key.foregroundColor:UIColor.red], for: .selected)