Coder Social home page Coder Social logo

devxoul / uiviewcontroller-navigationbar Goto Github PK

View Code? Open in Web Editor NEW
51.0 3.0 6.0 33 KB

[Deprecated] UIViewController with its own navigation bar. It provides an availability for the smooth push/pop animations between view controllers which have different navigation bar styles.

License: MIT License

Objective-C 42.96% Swift 54.65% Ruby 2.39%

uiviewcontroller-navigationbar's Introduction

UIViewController+NavigationBar

Build Status CocoaPods


⚠ Deprecation Warning

This project is no longer maintained. Use KMNavigationBarTransition instead.


UIViewController with its own navigation bar. It provides smooth push animations between view controllers which have different navigation bar styles.

uiviewcontroller navigationbar mov

At a Glance

Override hasCustomNavigationBar method to use custom navigation bar. Then you can use navigationBar property on UIViewController.

class MyViewController: UIViewController {

    override func hasCustomNavigationBar() -> Bool {
        return true // I'm gonna use custom navigation bar!
    }

}

let viewController = MyViewController()
viewController.navigationBar.barTintColor = .purpleColor() // Use custom navigation bar
viewController.navigationItem.title = "Hello" // Change navigationItem property

Note: Don't confuse with UINavigationController's navigationBar.

Hiding System Navigation Bar

With UIViewController+NavigationBar, you have to do something additional to make system navigation bar hidden.

class MyViewController: UIViewController {

    /// Override this method to make built-in navigation bar hidden
    override func prefersNavigationBarHidden() -> Bool {
        return true
    }

}

Installation

I recommend you to use CocoaPods with Podfile:

pod 'UIViewController+NavigationBar'

License

UIViewController+NavigationBar is under MIT license. See the LICENSE file for more info.

uiviewcontroller-navigationbar's People

Contributors

devxoul avatar robin7331 avatar

Stargazers

peanutgao avatar Liam Ronan avatar Hosein avatar Artem avatar Alexander Maslennikov avatar Iqbal Qasim Khan avatar  avatar winddpan avatar 김현준 avatar  avatar Tanguy G. avatar Koki Ide avatar yuzushioh avatar nick avatar  avatar 陈建立 avatar Hanis avatar Andrei Radulescu avatar Kazunori Ninomiya avatar zhonggaorong avatar Hony avatar luohaoyuan avatar Wildog avatar Wooseong Kim avatar winmons avatar ZX avatar Kenichi Saito avatar 慎道 avatar  avatar Zzzzz... avatar Zack Braksa avatar WenDong avatar 86 avatar Morita Naoki avatar Jiro Nagashima avatar Shinichi Goto avatar Aaron ttgb avatar Tyler Trushin avatar hanamichi avatar neilwu avatar Taejun Kim avatar  avatar Damien avatar  avatar Tony avatar rb_de0 avatar Frederic D. avatar Harimoto avatar Woosung Jeon avatar Yuri Karabatov avatar Marcin Raburski avatar

Watchers

James Cloos avatar  avatar  avatar

uiviewcontroller-navigationbar's Issues

Blank NavigationBar inside MFMessageComposeViewController

If I use your library, I am not able to use the MFMessageComposeViewController that gets instantiated through a Text Message share from a UIActivityViewController.

The problem is, that the NavigationBar provided by the MFMessageComposeViewController is completely blank. No title or cancel button anymore.

I tried to fix this by creating a category for the MFMessageComposeViewController that sets the "hasNavigationBar" property to false in the viewDidLoad Method.

extension MFMessageComposeViewController {
public override func viewDidLoad() {
super.viewDidLoad()
self.hasNavigationBar = false
}
}

No success so far.

Any advice? Thanks!

bildschirmfoto 2016-02-25 um 15 27 48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.