0

enter image description here

hey guys Im using navigation controller but what I want to do is remove the huge space made by navigation controller on the first view but retain the back button on the succeeding views. TIA

user978064
  • 69
  • 2
  • 9
  • This should help you http://stackoverflow.com/questions/29209453/how-to-hide-a-navigation-bar-from-first-viewcontroller-in-swift – ronatory Feb 05 '17 at 18:23

1 Answers1

1

SWIFT 3.0

override func viewWillAppear(_ animated: Bool)
{
    super.viewWillAppear(animated)
    self.navigationController?.isNavigationBarHidden = true;
}

override func viewWillDisappear(_ animated: Bool) 
{
    super.viewWillDisappear(animated)
   self.navigationController?.idNavigationBarHidden = false;
}
Faisal Khalid
  • 620
  • 10
  • 22