- (void)viewWillAppear:(BOOL)animated detect custom animation
问题 I have a button which when pressed pushes a view controller however i'm using a custom animation so pushViewController: childController animated: is set to NO. What i want to do though is detect this custom animation in my - (void)viewWillAppear:(BOOL)animated method and write an if statement like this; - (void)viewWillAppear:(BOOL)animated { if (customAnimation occured) {//Do this} else {//Do this} } This is the method for my button which pushes the view controller. - (void)nextPressed:(id