An ordinary custom navigation bar.
Gradation | Image | Q Zone | |
---|---|---|---|
Zhihu | Alipay | Transparent gradient | |
---|---|---|---|
To run the example project, clone the repo, and run pod install
from the Example directory first.
- iOS 8+
- Xcode 8+
EFNavigationBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'EFNavigationBar'
For more details, see the Example
project:
navBarBarTintColor = .white
navBarBackgroundAlpha = alpha
navBarTintColor = UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1.0)
navBarTitleColor = .black
statusBarStyle = .default
navBarShadowImageHidden = true
UIColor.defaultNavBarBarTintColor = UIColor.init(red: 0 / 255.0, green: 175 / 255.0, blue: 240 / 255.0, alpha: 1)
UIColor.defaultNavBarTintColor = .white
UIColor.defaultNavBarTitleColor = .white
UIColor.defaultStatusBarStyle = .lightContent
UIColor.defaultShadowImageHidden = true
- The original code of EFNavigationBar come from WRNavigationBar_swift, since the
WRNavigationBar_swift
project seems to be no longer maintained, soEFNavigationBar
project has been established; - For Objective-C version, see WRNavigationBar.
EyreFree, eyrefree@eyrefree.org
EFNavigationBar is available under the MIT license. See the LICENSE file for more info.