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