ios xcode15 navigationController?.navigationBar.isHidden = false无效

xcode 15 用

navigationController?.setNavigationBarHidden(true, animated: false)

隐藏navigationBar后,再调用

navigationController?.navigationBar.isHidden = false

无效

解决

navigationController?.navigationBar.isHidden = true

隐藏navigationBar

你可能感兴趣的:(ios,ios)