Last active
July 13, 2018 00:23
-
-
Save aprato/6631390 to your computer and use it in GitHub Desktop.
Darker iOS7 translucent UINavigationBar
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 using CGRectGetHeight([[UIApplication sharedApplication] statusBarFrame])
. Fork here: https://gist.github.com/chaitanyagupta/7024530
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
https://gist.github.com/j-mcnally/6987297
I didnt want to have to go over every single class and change the subclass so i went with the swizzing approach, id love if someone wanted to implement this to the original spec, its late and i only need it to be one color and one opacity ever, but wanted to get thoughts about potential pitfalls.