I am creating view based application and in this application I want to directly switch over to 1st screen from 4th screen then how can I do this?
My code to go to next view is as follows:
NewProposalDetail *newDetail = [[NewProposalDetail alloc] initWithNibName:@"NewProposalDetail" bundle:nil];
[self presentModalViewController:newDetail animated:YES];
[newDetail release];
Any idea? if yes then share it
The same way you switch screens using pushViewControllers
and popViewControllers
to any other screen. Use
[self.navigationController popToRootViewControllerAnimated:YES];
The first view is the root view you see so simply put this line and it will pick up the firstView.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.