我正在尝试使用侧边菜单和一些导航 Controller 开发应用程序。
一切正常,但我指出了推送详细 View Controller 的问题。
我尝试使用以下方法删除阴影:
UINavigationBar.appearance().shadowImage = UIImage()
我将每个导航 Controller 和 subview 的背景颜色设置为白色,并将每个导航栏的半透明设置为 false。
我无法弄清楚这可能是什么问题。
最佳答案
试试这个 :
UINavigationBar.appearance().setBackgroundImage(UIImage(), forBarPosition: .Any, barMetrics: .Default)
UINavigationBar.appearance().shadowImage = UIImage()
关于ios - 在过渡期间去除阴影和透明度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36647979/