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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -