I’m working on a PDF app running iOS4.3. I trying to put in a horizontal UIScrollView all the PDF pages and when it’s needed drawLayer:inContext: it’s called.
My doubt is about realeasing the main UIScrollView. I check it with Instruments and memory don’t free as much as it had grown. I have to go one by one releasing de UIView that contains the PDF?
I always release CGPage and CGDocument after drawing. I also get memory warnings when zooming.
Thanks in advance.
Yes, a
UIViewowns its subviews so it releases them whendeallocis called on it. This does not necessarily calldeallocon the subviews, for example, if they are retained elsewhere.