Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-29-2010, 07:08 PM   #13 (permalink)
timle8n1
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

Quote:
Originally Posted by AdamSubach View Post
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.
timle8n1 is offline   Reply With Quote
 

» Advertisements
» Online Users: 373
10 members and 363 guests
amit.mangal, Domele, HemiMG, ipodphone, minglei, online-loans70, PavelSea, Sesio, thephotographer, Wharazhasri
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,568
Threads: 94,081
Posts: 402,751
Top Poster: BrianSlick (7,990)
Welcome to our newest member, online-loans70
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:24 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.