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

前端 未结 13 1479
后悔当初
后悔当初 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:53

    Also you can try this:

    controller.navigationBar.shadowImage = [[[UIImage alloc] init] autorelease];
    

    controller is a UINavigationController.

提交回复
热议问题