Latest | 1.0.0-alpha.0 |
---|---|
Homepage | https://github.com/Alchemistxxd/AXStylishNavigationBar |
License | MIT |
Platforms | ios 7.0, requires ARC |
Frameworks | Foundation, UIKit |
Authors |
[]()
[]()
[]()
[]()
[]()
AXStylishNavigationBar is a NavigationBar category can let you dynamically change the background color, image, blur effect.
Usage
Change the default blur effect alpha of NavigationBar.
[self.navigationController.navigationBar setBarStyle:UIBarStyleDefault];
[self.navigationController.navigationBar ax_setBackgroundColorAlpha:anAlpha];
Change the background color.
[self.navigationController.navigationBar ax_setBackgroundColor:aColor];
If you want to change the background image and also about background color of it (.png file type only), just use:
- (void)ax_setBackgroundImage:(UIImage *)backgroundImage forBarMetrics:(UIBarMetrics)barMetrics;
- (void)ax_setBackgroundImageBackgroundColor:(UIColor *)aColor;
and if you want to remove the image, you have to do this:
[self.navigationController.navigationBar ax_clearBackgroundImage];
You can also change the alpha of navigation items, backIndicator and the position of navigationBar.
More details are in the demo.
Installation
#import "UINavigationBar+AXStylish.h"
Or
$ pod setup
$ pod search AXStylishNavigationBar
License
MIT
Latest podspec
{ "name": "AXStylishNavigationBar", "version": "1.0.0-alpha.0", "summary": "AXStylishNavigationBar is a category can let you dynamically change the default style of UINavigationBar.", "homepage": "https://github.com/Alchemistxxd/AXStylishNavigationBar", "license": "MIT", "authors": { "Alchemistxxd": "[email protected]" }, "source": { "git": "https://github.com/Alchemistxxd/AXStylishNavigationBar.git", "tag": "v1.0.0-alpha.0" }, "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "AXStylishNavigationBar/*", "frameworks": [ "Foundation", "UIKit" ] }
Sun, 06 Mar 2016 05:51:03 +0000