Added new extension "navigationBarHidden".

This commit is contained in:
albert vila 2016-12-04 12:08:03 +01:00
parent aabb796d3d
commit 71063d369c
1 changed files with 3 additions and 3 deletions

View File

@ -248,9 +248,9 @@ extension UIViewController {
_ = navigationController?.popViewController(animated: true)
}
/// EZSE: Added extension for popToRootViewController
public func popToRootVC() {
_ = navigationController?.popToRootViewController(animated: true)
/// EZSE: Hide or show navigation bar
public func navigationBarHidden(_ hide:Bool) {
navigationController?.setNavigationBarHidden(hide, animated: true)
}
///EZSE: Presents a view controller modally.