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 03-08-2010, 09:32 PM   #1 (permalink)
ELA
Registered Member
 
Join Date: Jan 2010
Posts: 4
ELA is on a distinguished road
Default Navigation Controller Stack

Hi,

I've got into a situation where I need expert help.

I'm trying to create an Flash Card Application, where user can swipe through group of image (audio + image) cards. I've used the Navigation Controller to manage the view controllers.

The problem, when the user pushes to the 10 or 11th view controller, my application reaches around 9 MB of memory. For example, if my navigation controller stack has the following view controllers in it;
- RootViewController
- ViewController1
- Viewcontroller2
- ViewController3
- Viewcontroller4
- ViewController5
- Viewcontroller6
- ViewController7
- TopViewController

If my navigation controller stack has 8 view controllers, excluding the root, I would like to nullify the view's (or some thing else, which would release the memory associated with that view controller) associated with the view controllers 1 - 5 (I still want to have these view controllers part of my navigation controller stack. Just want to release the view (which has an subview of UIImageView) associated with them.

Is there any way I can achieve that?

Also, when the user swipes back (navigating backwards, where I pop the top view controller) and reaches the above nullified view controllers, I want to reload the image and show it to the user.

I'm not sure whether I explained my requirement/issue properly. Please let me know if I didn't.

Thanks
Ela
ELA is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,536
Threads: 94,052
Posts: 402,640
Top Poster: BrianSlick (7,979)
Welcome to our newest member, bppnormal11
Powered by vBadvanced CMPS v3.1.0

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