I have FavouriteViewController
in which i have one button on click of button i am presenting a view modally called LoginViewController
(using storyboard)
On this page(LoginViewController
), i again have button, on click of that i want to push my view controller.
Is it possible ?
You can try below code.. It may help you to get your desired solution.
1) Present LoginViewController
by write below code.
LoginViewController *login = [[[LoginViewController alloc]initWithNibName:@"LoginViewController" bundle:nil]autorelease];
UINavigationController *nc = [[[UINavigationController alloc] initWithRootViewController:login]autorelease];
nc.navigationBar.hidden = YES;
[self.navigationController presentModalViewController:nc animated:YES];
2) Now from LoginViewController
, You can push your MyviewController
as below.
MyviewController *adss = [[[MyviewController alloc]initWithNibName:@"MyviewController" bundle:nil]autorelease];
[self.navigationController pushViewController:adss animated:YES];
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