iOS 10 barTintColor animation

后端 未结 2 1583
被撕碎了的回忆
被撕碎了的回忆 2021-02-08 09:11

I\'ve noticed a change in the way bar tint color animates in ios 10. I\'ve created a sample project outlining the change: Github: ios10BarTintDemo

Basically on ios 9 the

2条回答
  •  眼角桃花
    2021-02-08 09:49

    You can fix this popping issue by adding something similar to this, running it in viewWillDisappear won't work for some reason in iOS10

    override func willMove(toParentViewController parent: UIViewController?) {
        self.navigationController?.navigationBar.barTintColor = UIColor.red
        super.willMove(toParentViewController: parent)
    }
    

提交回复
热议问题