Restore default navigation bar appearance

前端 未结 2 1640
借酒劲吻你
借酒劲吻你 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 15:52

    You should be able to get the default appearance back just by setting the background image and shadow image to nil.

    0 讨论(0)
  • 2021-01-17 16:02

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

    navigationController?.navigationBar.barTintColor = nil
    
    0 讨论(0)
提交回复
热议问题