Last active
July 13, 2018 00:23
-
-
Save aprato/6631390 to your computer and use it in GitHub Desktop.
Darker iOS7 translucent UINavigationBar
check the new comment, 7.0.3 changed things again. I'm only using the backing layer pre 7.0.3. For everything later a color with an alpha (I'm using .91 on blackColor) seems to be a better approach.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails when the device is rotated to landscape orientation. Instead of computing
spaceAboveBar
from the bar's frame, its better to get the status bar's height directly usingCGRectGetHeight([[UIApplication sharedApplication] statusBarFrame])
. Fork here: https://gist.github.com/chaitanyagupta/7024530