Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationController strange pop animation

I have a strange animation when I pop a ViewController on my NavigationController. Short video to illustrate: https://youtu.be/IMbIS7evLrs

The view controller structure is: UITabBarController -> UINavigationControllers -> UIViewControllers

I push the new VC using this line in my UIViewController:

    [self.navigationController pushViewController:tripVC animated:YES];

Where tripVC is a newly created UIViewController. Then the pop happens when the NavigationController Back button is clicked. I've also tried calling the pop programmatically using

[self.navigationController popViewControllerAnimated:YES];

from within tripVC and get the same strange animation.

What's particularly odd is I've used this structure / approach on other apps and haven't had this problem. Am wondering if there's some strange segue code in my app / am missing some animation code?

like image 505
CharlesA Avatar asked Aug 30 '26 23:08

CharlesA


1 Answers

It seems that the background image in the second VC is wider than the device screen. As this scene pushes in/out the normally hidden edge of the image is revealed briefly.

like image 109
Paulw11 Avatar answered Sep 01 '26 17:09

Paulw11



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!