Dark shadow on navigation bar during segue transition after upgrading to Xcode 5.1 and iOS 7.1

前端 未结 12 1782
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 19:04

When I am navigating back & forth between parent and child controllers in a master - detail navigation controller, i see a dark shadow on the right side of navigation ba

12条回答
  •  日久生厌
    2020-11-30 19:13

    nonamelive's answer is perfect. To achieve the same thing in Interface Builder AND STILL KEEP TRANSLUCENCY, select the navigation controller and set a user defined runtime attribute view.backgroundColor as shown in the screenshot (in the Identity Inspector). Repeat for all navigation controllers that show this problem.

    It seems that this whole problem occurs because the black color (or actually, no color) of UINavigationController is leaking through at the time CoreGraphics snapshots it at animation begin. So, setting it to white will prevent that.

提交回复
热议问题