You can access the view controllers in the UITabBarController using its property viewControllers(returns an array of controllers) and get the one you need by its index.
However, it’s best to try to stop the animation in the controller method -viewWillDisappear:and resume the animation in -viewWillAppear:.
source
share