Search code examples
iosuinavigationcontrollersingletonpushviewcontroller

UIViewController bouncing back from pushViewController


Let me give a quick briefing of what I have:

I have a navigationController that could go 3 levels deep.

From the first and the second level I'm able to message

[self.navigationController pushViewController:[PlayerViewController playerSingleton] animated:YES];

If I do that from the first level it pushes the PlayerViewController's view with no problem. It slides from the right to the left with no problems.

But, if I try to push from a second level view in navigationController it slides just like the other one but then it slides back!

I've double checked if it was any code explicitly saying this but there's none.

Any ideas?


Solution

  • I had a lost -popViewControllerAnimated in my code.

    Just removed that and it's working again.