Reputation: 13
I have been trying to figure this out all day. How do I change the transparency level for the UINavigationBar on iOS 7?
This is what I have tried (with no success):
[self.navigationController.navigationBar setTintColor:[UIColor colorWithWhite:1 alpha:0.01f]]
. This works, but the image as the background for my UIViewController appears to be grayscale.Thank you very much.
Edit: I am trying to achieve something like this.
Upvotes: 0
Views: 502
Reputation: 5290
I don't believe it to be possible to make the bar opaque anymore. The link you added does not have an opaque bar either. It is translucent with what looks to be a blue barTintColor.
What I suspect you are trying to do is have your content not covered by the translucent bar. In that case, look at UIViewController edgesForExtendedLayout
. You probably want self.edgesForExtendedLayout = UIRectEdgeNone;
.
Upvotes: 1