0

When i move to view controller after making navigationbar.ishidden = false the navbar height decreases and there is a black space between navbar and uiview And when i move down the notification screen navbar height increase

Code

viewController = PlaceOrderViewController(nibName: "PlaceOrderViewController", bundle: nil) 
viewController.hidesBottomBarWhenPushed = true 
viewController.navigationController?.isNavigationBarHidden = false 
viewController.modalPresentationStyle = .fullScreen 
viewController.fromLastScreen = "ProductDetailViewController" 
self.navigationController?.pushViewController(viewController, animated: true) 
adrisons
  • 3,443
  • 3
  • 32
  • 48
nischal
  • 1
  • 1
  • Hi, please provide examples and code. – adrisons Apr 13 '20 at 14:12
  • @adrisons if I push to second view controller from first view controller having navigation bar hidden and then show navigation bar on second view controller it shows me black space between uiview and navigation bar – nischal Apr 24 '20 at 08:03
  • @adrisons . et viewController = PlaceOrderViewController(nibName: "PlaceOrderViewController", bundle: nil) viewController.hidesBottomBarWhenPushed = true viewController.navigationController?.isNavigationBarHidden = false viewController.modalPresentationStyle = .fullScreen viewController.fromLastScreen = "ProductDetailViewController" self.navigationController?.pushViewController(viewController, animated: true) – nischal Apr 24 '20 at 08:04
  • Ok, I added that code to your question – adrisons Apr 24 '20 at 08:07

0 Answers0