最終的に私は問題を解決してきたのに役立ちます願っています!
問題は、この関数であった:
extension UINavigationController{
func applyWhiteEffect(){
var bounds = self.navigationBar.bounds
let whiteView = UIView()
bounds.origin.y = -20
bounds.size.height = bounds.size.height + 20
whiteView.frame = bounds
whiteView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
whiteView.userInteractionEnabled = false
whiteView.backgroundColor = UIColor.whiteColor()
whiteView.tag = 1000
self.navigationBar.addSubview(whiteView)
self.navigationBar.backgroundColor = UIColor.clearColor()
self.navigationBar.sendSubviewToBack(whiteView)
}
}
この関数は、白のビューを適用し、そのとiOS 10に問題があったので、私はこれに変更しました:
func applyWhiteEffect(){
var bounds = self.navigationBar.bounds
let whiteView = UIView()
bounds.origin.y = -20
bounds.size.height = 20
whiteView.frame = bounds
whiteView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
whiteView.userInteractionEnabled = false
whiteView.backgroundColor = UIColor.whiteColor()
whiteView.tag = 1000
self.navigationBar.addSubview(whiteView)
self.navigationBar.backgroundColor = UIColor.whiteColor()
self.navigationBar.sendSubviewToBack(whiteView)
}
変更しますステータスバーのみをカバーするビューとself.navigationBar.backgroundColor = UIColor.whiteColor()
とにかく私を助けてくれてありがとうD
titleViewを設定すると、タイトルは使用されません。あなたは何をしているのいくつかのコードを表示していただけますか? –