As a controller's view is only released in the didReceiveMemoryWarning method when such view is not currently displayed. Is it correct to perform this test in the didReceiveMemoryWarning method:
Code:
// Test if the view is attached to a superView
if([[self view] superView] == nil)
{
NSLog(@"View is going to be released as not showing");
}
Is that piece of code Ok to test in the didReceivememoryWarning method the condition when the view is going to be released?
Thanks
B-