簡體   English   中英

UIViewController 邊緣在 UINavigationController animation 期間未延伸到頂/底欄后面(如果它具有半透明 UIToolbar 子視圖)

[英]UIViewController edges not extended behind top/bottom bars during a UINavigationController animation if it has a translucent UIToolbar subview

我將半透明 UIToolbar 顯示為 UIViewController 的子視圖,它是 UINavigationController 的子視圖(我不使用 UINavigationController 類工具欄),因為我想要子工具欄。

Everything works fine but one thing: when I push another UIViewController on the UINavigationController stack, the next UIViewController edges are not extended behind the NavigationBar until the animation is over. 下一個 UIViewController 的 pop animation 啟動時也會出現同樣的問題。

旁注:

  • NavigationBar 是半透明的(默認情況下)
  • 兩個 UIViewControllers 都設置為在頂部和底部欄下擴展邊緣
  • 如果 UIToolbar 不是半透明的(如果設置了色調),則該問題無法重現。
  • 如果 UINavigationController 位於 UITabBarController 內,則會出現同樣的問題:下一個 UIViewController 邊緣未在 tabBar 下延伸。

它可以在 iOS 12 和 iOS 13 設備/模擬器上輕松重現,無需代碼,只需 storyboard 編輯。

有沒有人對我看起來像 UINavigationController 推送/彈出 animation 問題有任何線索?

這是它的樣子: 在此處輸入圖像描述

我沒有發現在 iPhone 11 模擬器中的 iOS 13.2 上檢查過任何此類問題。 在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM