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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2009, 10:59 PM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 5
Default presentmodalviewcontroller and memory management

Ok, my app only has a few views so the user navigates through the views using modalviewcontrollers.Let's say View A goes to B, and view B goes to C. A is the menu screen. Going back from B to A is easy using dismissmodalviewcontroller, but I can't do the same thing going from C to A. To get around this, I just created a new instance of the View A controller using initwithnibname in the View C controller, and then set that as the presentmodalviewcontroller. (and then releasing it) My question is, is this using up more and more memory the more it is used? If I continuously go from A to B to C, and then back to A, is it using up more memory?
Launch is offline   Reply With Quote
Old 06-28-2009, 06:49 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 43
Default

Depends on how do you store your loaded controller. Anyway I would suggest to use UITabBarController for A B C A navigation.
split is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 590
21 members and 569 guests
Andy8888, Arfan, armmzz, bignoggins, BrianSlick, ckgni, devangvyas, Duncan C, Hito_kun, kvu, learningtocode, linkmx, LiquidFire, MarcoAlmeida, Monstertaco, oceanlablight, soonw29, sudama, Vineesh
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,775
Threads: 89,203
Posts: 380,588
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Andy8888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0