0

I am trying to remove the white gradient from the top of the navigationBaron iOS6. How can I do this ?

Fabio Berger
  • 1,921
  • 2
  • 24
  • 29

2 Answers2

2

Have you tried setting the background image on the navigation bar?

try using setBackgroundImage:forBarMetrics: and setting an image without the gradient.

Maybe use the code from the answer to this question to create a solid colour image:

How to create a colored 1x1 UIImage on the iPhone dynamically?

Community
  • 1
  • 1
George Green
  • 4,807
  • 5
  • 31
  • 45
1

Another somewhat hack-ish solution is mentioned here: https://stackoverflow.com/a/4904939/171933

The background image seems like the cleaner solution.

Community
  • 1
  • 1
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165