I set up a segue in a view controller say called A.
Then i want to perform this segue in another view controller called B, i did this:
Then it gives me an error says A doesn't have the corresponding segue to "Photos". But when i call this in the A view controller, then it could perform the segue without any error.
Why? Thanks
Then i want to perform this segue in another view controller called B, i did this:
Code:
A *a = [[A alloc] init];
[a performSegueWithIdentifier:@"Photos" sender:a];
Why? Thanks