Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jeremy1026

macrumors 68020
Original poster
Nov 3, 2007
2,216
1,030
I am trying to stop an animation loop once the view controller is changed, is there a way to programatically check which view controller is currently the super? I used the tab bar template for this project.
 
Code:
if (self.yourViewController.view.superview)
{
     //yourViewController is superview
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.