Post

Replies

Boosts

Views

Activity

Reply to UITab memory leak
Hi Patatrouf, I tried this and it didn't work for me. The problem in my memory graph is (as far as I can see), is that the UITab is being kept in memory NOT by the tab bar, but by a UIFloatingTabBarItemView which seems to be kept in a _subViewCache. So setting the update UITabs had no affect for me since its not the tab bar that is holding the ref. Perhaps what you're seeing is a slight variation on what is happening here? Glad your little hack worked for you, but it doesn't work for me. I have spent a couple of days trying to work around this one without much success. The only thing I can do is force dealloc all my own objects within the ViewControllers that sit inside the UITabs. This doesn't stop the ViewControllers staying in memory but at least they're using minimal memory at this stage. My code is polluted with a whole heap of extra code now, but it is what it is.
Topic: UI Frameworks SubTopic: UIKit
2d