Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Error in user YAML: (<unknown>): did not find expected comment or line break while scanning a block scalar at line 1 column 1
---
> Note: this is abandoned. 
> I don‘t recommend to use it in any new projects.
---

RTCleanNavigationBar

UINavigationBar subclass that removes the shadow image while retaining translucency effect in iOS 7 and up

Usage

You need to initialize the UINavigationController to use this subclass, like this:

UIViewController *vc = ...;
UINavigationController *nc = [[UINavigationController alloc] 
	initWithNavigationBarClass:[RTCleanNavigationBar class] 
	toolbarClass:nil];
[nc setViewControllers:@[vc]];
...

In order for the bar to seamlessly blend with the view controller contents, set its barTintColor to the VC's background.

[[UINavigationBar appearance] setBarTintColor:[UIColor whateverColor]];

About

UINavigationBar subclass that removes the shadow image while retaining translucency effect in iOS 7 and up

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages