06-27-2009, 10:59 PM
|
#1 (permalink)
|
|
New Member
Join Date: Jun 2009
Posts: 5
|
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?
|
|
|
06-28-2009, 06:49 AM
|
#2 (permalink)
|
|
Registered Member
Join Date: Feb 2009
Posts: 24
|
Depends on how do you store your loaded controller. Anyway I would suggest to use UITabBarController for A B C A navigation.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 480 |
| 63 members and 417 guests |
| activ8, Alexman, amiralic, amoll, Andrey, angelFrog, bbc z, BillHerr79, bluemonkey, brianmethod, BrianSlick, Chonch, ChrisMayer, Corsu, CoxTral, craig.w, danbaumbach, dany88, dda, digidan, dre, Drudoo, eemceebee, eJohnny, Erle, fede, gjosef, healthyutech, imsatasia, JasonR, Jeremy1026, JJGEight, johny_abo, KenPletzer, krisix, lanej, linuxgood, lws, MacSteve85, markbuchanan, mlo, Mopedhead, Mr Jack, MrMattMac, nicholask, nonamelive, Nungster, P2k, QAD, raees, redmouse, ryguy2503, scotopia, staticouture, TheAppByte, TheGiant, themathminister, tomoan74, Tuszy, xyster, zivido, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,499
Threads: 35,780
Posts: 156,754
Top Poster: smasher (2,448)
|
| Welcome to our newest member, staticouture |
|