I’m wondering if the cache of UITableview cells is cleared when a UITableViewController (or subclass) receives a memory warning.
I have a subview in some cells and I’d like to know if it’s safe to release them on a memory warning.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is an implementation detail that is not known (or I must have missed it) – and it might change from version to version.
If you implement your custom table view cells correctly and use proper memory management (i.e. release your ivars in dealloc), then it really should not matter at all.
If you have references to those subviews elsewhere, this can get very tricky anyway, as you shouldn’t assume the cell coming from the cache or not anyway.