Hi i have little confusion. i am using below method in my application.how should I call this method from ant other point where i need in same view controller.
- (void) prepareForSegue: (UIStoryboardSegue *) segue sender: (id) sender
Thanks
Hi i have little confusion. i am using below method in my application.how should I call this method from ant other point where i need in same view controller.
- (void) prepareForSegue: (UIStoryboardSegue *) segue sender: (id) sender
Thanks
Use this method wherever you want to segue Controllers.
[self performSegueWithIdentifier:@"yourSegueIdentifierName" sender:nil];
This method will automatically trigger the prepareForSegue
method as soon as the above statement is encountered.
You should never call prepareForSegue
in code. It is called for you.
The method you are looking for is...
[self performSegueWithIdentifier:@"someSegueIdentifier" sender:nil];
This will then be routed into the prepare for segue method.