Home > DeveloperSection > Forums > Get segue identifiers of viewController in ios
Pravesh Singh

Total Post:412

Posted on    November-11-2014 10:43 PM

 iPhone Ios  Objective C 

 1 Reply(s)
 1080  View(s)
Rate this:

Is there a way to get all segue identifiers for VC ?

Or just to know has the VC segue with identifier?

Samuel Fernandes
Samuel Fernandes

Total Post:159

Posted on    November-12-2014 2:48 AM

No, there is no way to do what you are looking for.

If you could tell us why you need this then may be some one can give you directions to an alternative.


If you really want to do it this way than you can use try/catch, something like this should work:



    [self performSegueWithIdentifier:@"first" sender:self];


@catch (NSException *exception)


    if ([exception.name isEqualToString:@"NSInvalidArgumentException"])



        [self performSegueWithIdentifier:@"second" sender:self];



Don't want to miss updates? Please click the below button!

Follow MindStick