I have an unusual problem with my views – after a while of using my tabbar based app, I noticed that the sliding transition between views stops and instead the view just changes (no animation at all). I can’t understand how or why it’s happening as it happens at random – i.e. it doesn’t occur on a particular view, it may happen at any stage of using the app.
Has anyone had this problem before and how did you solve it/find the code that was causing the problem?
EDIT:
I think this code (which is used to go a to a view i.e another tab from my home tab) may be causing the problem.
self.tabBarController.selectedIndex = 1;
UINavigationController *firstNavController =
(UINavigationController *)[self.tabBarController selectedViewController];
[firstNavController popToRootViewControllerAnimated:NO];
// Try using below code. Just changed animated NO to animated YES.
self.tabBarController.selectedIndex = 1;
UINavigationController *firstNavController =
(UINavigationController *)[self.tabBarController selectedViewController];
[firstNavController popToRootViewControllerAnimated:YES];