UINavigationBar UIAppearance doesn't update when popping from a pushed view controller. But it does when dismissing from a modal view controller. Is that the normal behaviour? Is there a way to update it when only popping from a pushed view controller?
You need to do as follow:
let windows = UIApplication.shared.windows
for window in windows {
for view in window.subviews {
view.removeFromSuperview()
window.addSubview(view)
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.