What I use in the source view controller:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { UIViewController *upcomingViewController = [segue destinationViewController]; upcomingViewController.view.tag = [[segue identifier] hash]; }
And then in the destination view controller I use (use e.g. in viewDidAppear)
if(self.view.tag == [@"MySeqgueIdentifier" hash]) {
This is cool, since you do not need to create any properties, etc., and everything works directly from the interface constructor.
source share