I have an application using Storyboard. On a view there is an AlertViewDialog.
When the user clicks the first button ("Yes"), how can I open an other view on the Storyboard?
my be this can help :
create SecondViewController class (.h &.m) subclass of viewController .
then from alert view code (as you said when YES is clicked )
paste the code mentioned below
SecondViewController *svc =[self.storyboard instantiateViewControllerWithIdentifier:@"vinay"];
[svc setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[self presentViewController:svc animated:YES completion:nil];
let me know if any issues occur.
May this helps:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
ClassNameViewController *viewController = (ClassNameViewController *)[storyboard instantiateViewControllerWithIdentifier:@"viewIdentifierOnStoryboard"];
[self presentModalViewController:viewController animated:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With