简体   繁体   中英

removing the navigation title bar on the first view

在此处输入图片说明

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

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;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM