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

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

License

Notifications You must be signed in to change notification settings

radianttap/RTCleanNavigationBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published