Hi, in the book (pg. 178) it is said:
A view controller will destroy its view if the system is running low on memory and if its view isn’t currently on the screen. Run HypnoTime in the simulator. Select the Time tab so that both views are loaded.
Now, in the simulator, select Simulate Memory Warning from the Hardware menu. This simulates what happens when the operating system is running low on memory and tells your application to clean up stuff it isn’t using.
Switch back to the Hypnosis tab; notice that the console reports that HypnosisViewController loaded its view again[/i]
The thing is even though I followed instructions as above, the behaviour which corresponds to the text I underlined,
does not happen.
Why is this? Is this because maybe I am using iOS 6.1 Simulator? Or Latest XCode?
ps. This does not get called either when I click Simulate Memory Warning when I am on the Hypnosis Tab:
[code]// in TimeViewController
NSLog(@“Unloading TimeViewController’s subviews”);
timeLabel = nil;