Restore default navigation bar appearance

前端 未结 2 1666
借酒劲吻你
借酒劲吻你 2021-01-17 15:35

I\'m making an iOS app for iPhone, and I\'m using a navigation controller. At some point during the navigation, I\'m adding a UISegmentedControl to a view contr

2条回答
  •  春和景丽
    2021-01-17 16:02

    With iOS 11.* and Swift 4, you need to set the barTintColor to nil.

    navigationController?.navigationBar.barTintColor = nil
    

提交回复
热议问题