How to load multiple views one after the another once this view is displayed
- (void)displayviewsAction:(id)sender
{
PageOneViewController *viewController = [[[PageOneViewController alloc] init]autorelease];
viewController.view.frame = CGRectMake(0, 0, 320, 480);
[self.view addSubview:viewController.view];
[self.view addSubview:toolbar];
}
Now on top of this viewcontroller how i can load multiple viewcontrollers one after the other.
Please advice.
Thanks for help.
It depends on how you want to display it. If you’re using a
UINavigationController, you can do something like:or, if you’d like to present it as a modal view, you can do this to support older versions of iOS:
or, if you’re only targeting iOS 5, do this:
Then to dismiss the view controller, on older versions of iOS:
or if you’re only targeting iOS 5: