iOS7 Custom ViewController transition and Top Layout Guide

后端 未结 4 1579
-上瘾入骨i
-上瘾入骨i 2021-02-01 04:32

I implemented a custom UIViewController Transition in my App, which replaces the navigation controllers built in push animation.

Everything works so far, except the topl

4条回答
  •  孤城傲影
    2021-02-01 05:06

    I was having an issue where the bottomLayoutGuide property would set itself to zero length and then would cause my buttons above the tab bar to fall below to tab bar with the autolayout.

    Have you looked at doing this

    [self.navigationController.view setNeedsLayout]
    

    I put it into my viewwillappear and I stopped getting a zero length on the bottomLayoutGuide property. Maybe that would help you out with your topLayoutGuide property too.

提交回复
热议问题