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 04-23-2009, 10:37 AM   #2 (permalink)
Dollopp
Registered Member
 
Join Date: Apr 2009
Posts: 123
Dollopp is on a distinguished road
Default

Hi,

The navigation controller is not causing the issue. If you have pushed the view controller and popped it then the retain count will not be affected (I'm not actually sure if the Navigation controller retains a viewcontroller which it pushes). You won't loose the pointer if you release the view controller just the memory which it is pointing too will be released. Sounds like you should just make sure that the dealloc method in your view controller has everything it should have in it (i.e. the large images you are talking about) and then after you pop the view controller just release it manually. The dealloc method in the view controller will then be called automatically for you (providing nothing else has retained it). You should then be able to create a fresh view controller in the next cycle of you program with the same pointer as before.

Hope this helps.

M.J.
Dollopp is offline   Reply With Quote
 

» Advertisements
» Online Users: 443
19 members and 424 guests
apatsufas, bdavid186, BumChinBooth, ChrisYates, desbrina, falco1973, iLearnColors, LegionMD, Lisafleu, LunarMoon, milanalina, PavelMik, pipposanta, Robemtims, solie, themartist, Wikiboo, ziocleto, zzeze
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,621
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, solie
Powered by vBadvanced CMPS v3.1.0

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