https://github.com/diegoserranoa/DSTransparentNavigationBar
Transparent NavigationBar. Objective-C
https://github.com/diegoserranoa/DSTransparentNavigationBar
Last synced: 2 days ago
JSON representation
Transparent NavigationBar. Objective-C
- Host: GitHub
- URL: https://github.com/diegoserranoa/DSTransparentNavigationBar
- Owner: diegoserranoa
- License: mit
- Created: 2014-10-14T04:15:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T18:46:34.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T19:36:37.427Z (11 months ago)
- Language: Objective-C
- Size: 4.09 MB
- Stars: 205
- Watchers: 11
- Forks: 39
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DSTransparentNavigationBar
==========================UINavigationBar that allows to set a transparency colors.



## Usage
Interface Builder
Select the NavigationBar from the Navigation Controller in the Interface Builder. Then, in Utilities -> Identity Inspector select DSNavigationBar as the Class.

Programatically
In the AppDelegate import the header file and set the navigationBar class to DSNavigationBar
```objective-c
#import "DSNavigationBar.h"UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[DSNavigationBar class] toolbarClass:nil];
// create a color and set it to the DSNavigationBar appearance
UIColor * color = [UIColor colorWithRed:(190/255.0) green:(218/255.0) blue:(218/255) alpha:0.5f];
[[DSNavigationBar appearance] setNavigationBarWithColor:color];// creating a fade out effect
/*
UIColor *topColor = [UIColor colorWithRed:(190/255.0) green:(218/255.0) blue:(218/255) alpha:1.0f];
UIColor *bottomColor = [UIColor colorWithRed:(190/255.0) green:(218/255.0) blue:(218/255) alpha:0];
[[DSNavigationBar appearance] setNavigationBarWithColors:@[topColor,bottomColor]];
*/```
---## License
Under the MIT license. More info on the LICENSE file.
## TODO
- Swift implementation
- iOS 7 support.