How do I disable the navigation bar shadow in iOS 6 for navigation bars with custom background images?

前端 未结 13 1363
后悔当初
后悔当初 2020-12-12 17:10

It seems in iOS 6, a drop shadow is automatically added to the navigation bar even when you set a custom background image. I\'m pretty sure this wasn\'t the case with iOS 5

相关标签:
13条回答
  • 2020-12-12 17:58

    I cannot comment so I'll add my information here.

    Perhaps the above suggestions worked in the beta, but it does not seem to be the case now.

    self.navigationController.navigationBar.shadowImage = [[UIImage alloc] init];
    

    The above does not work, neither do any of the other similar answers above. I have tried them all.

    Clipping to bounds does work but doesn't give the result I want as I'd like other views to hang outside the nav bar.

    0 讨论(0)
提交回复
热议问题