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) } } 
Comments
Post a Comment