Skip to content

Instantly share code, notes, and snippets.

@yoterpa
Created July 7, 2016 09:48
Show Gist options
  • Save yoterpa/c79876c4b6ac7dec91d82fd1dd783d69 to your computer and use it in GitHub Desktop.
Save yoterpa/c79876c4b6ac7dec91d82fd1dd783d69 to your computer and use it in GitHub Desktop.
[iOS] transparent navigation bar
UINavigationController *tempNavCont = [[UINavigationController alloc] initWithRootViewController:tempVC];
[tempNavCont.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
tempNavCont.navigationBar.shadowImage = [UIImage new];
tempNavCont.navigationBar.translucent = YES;
tempNavCont.view.backgroundColor = [UIColor clearColor];
tempNavCont.navigationBar.backgroundColor = [UIColor clearColor];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment