Reputation: 1029
When I am popping a view controller off of a navigation stack, a blue view in the popped navigation controller sort of delays in going off screen and trails behind the rest of the view controller as shown in the video: https://vid.me/GbBG
What is the reason for this and how can it be fixed?
Upvotes: 0
Views: 383
Reputation: 4941
Try this, it will surely works.
write below line in viewDidLoad:
of viewController containing Blue view(in 2nd View Controller).
self.view.clipsToBounds = true;
Reason : The width of your blue view is more than the width of viewController.view
. So just you need to clip the area outside the viewController.view
Upvotes: 7
Reputation: 150
Change the background image(the blue one)'s width to be view.frame.width.
It will be better.
Upvotes: 1