去掉UINavigationBar底部的分割线


// 去掉UINavigationBar底部的分割线

//导航栏背景透明
self.navigationController?.navigationBar.setBackgroundImage(UIImage.init(), for: .default)
//导航栏底部线清楚
self.navigationController?.navigationBar.barStyle = .black;
self.navigationController?.navigationBar.isTranslucent = true;
self.navigationController?.navigationBar.shadowImage = UIImage.init()



Loading Disqus comments...
Table of Contents