Quote:
Originally Posted by AdamSubach
Code:
-(IBAction) stage_12 {
//View Switch
VIEW *screen = [[VIEW alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen animated:YES];
[screen release];
and this to go back to previous view:
Code:
-(IBAction) bacKToView {
//Switch View Back Home
[self dismissModalViewControllerAnimated:YES];
I've been using this way to change views for a while, but since my app contains many many views there stacking on top of each other and eating all my memory away 
|
I'm not sure about the memory aspects of this but it does seem like a edge usage of ModalViewControllers. How about something like
Code:
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:THESUPERVIEW cache:YES];
[OLDVIEW removeFromSuperview];
[THESUPERVIEW addSubview:NEWVIEW];
Where THESUPERVIEW is a view containing all the other views - potentially the Window?
OLDVIEW is the view you are leaving
NEWVIEW is the view you are going to
You could create a double linked list representing your view list and then a reusable ViewController that navigates this double linked list.
You could also use a Navigation View Controller and hide the Navigation Bar if you don't want this UI element.