設(shè)置導(dǎo)航欄背景色為透明
navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
隱藏導(dǎo)航欄下方的線條
navigationController?.navigationBar.shadowImage = UIImage()
設(shè)置導(dǎo)航欄的背景色
navigationController?.navigationBar.barTintColor = UIColor.white
設(shè)置導(dǎo)航欄背景不為半透明
navigationController?.navigationBar.isTranslucent = false