What to do about “Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.”

前端 未结 4 547
刺人心
刺人心 2021-01-18 10:40

I\'m writing an iPhone app using Appcelerator Titanium Mobile. I am hiding and showing the tab group based on what window has focus.

dashWin.addEventListen         


        
4条回答
  •  别那么骄傲
    2021-01-18 11:11

    I had segues that were leading back to my main navigation controller which was causing this. I fixed the problem by setting the main navigation controller back to the top of the stack. Here is the code:

    - (void) viewDidAppear:(BOOL)animated
    {
        [self.navigationController popToRootViewControllerAnimated:NO];
    }
    

提交回复
热议问题