ios - Abnormal transition animation in UINavigationController with custom view -


i have subclassed uinavigationcontroller , added custom view (the black bar). side effect have adjust frame of viewcontroller's view in viewdidlayoutsubviews() not covered custom view. problem arises when push onto navigation stack seen in image below.

you can find code uinavigationcontroller subclass here

viewcontroller:

override func viewdidlayoutsubviews() {     log.debug("\(self) \n \(self.view.frame)")      if let nav = self.navigationcontroller as? tabbednavigationcontroller {         let height = nav.view.frame.size.height - nav.navigationviewheight         self.view.frame = cgrect(x: 0, y: nav.navigationviewheight , width: self.view.frame.size.width, height: height)     } } 

enter image description here


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -