ios开发去除navigationBar下面的横线

 fileprivate func hideBottonLine(views:Array){
        for i in 0.. 0 {
                hideBottonLine(views: view.subviews)
            }else if view.subviews.count == 0{
                return
            }
        }
    }

调用

hideBottonLine(views: (self.navigationController?.navigationBar.subviews)!)

你可能感兴趣的:(ios开发去除navigationBar下面的横线)