I am trying to remove the white gradient from the top of the navigationBaron iOS6.
How can I do this ?
Asked
Active
Viewed 630 times
0
Fabio Berger
- 1,938
- 2
- 25
- 29
2 Answers
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,737
- 5
- 29
- 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
- 40,544
- 18
- 119
- 159