I understand that the viewDidUnload will be called when the app is under low memory pressure, then when the related view/controller is about to be "active" again, will the loadView be called?
Asked
Active
Viewed 229 times
0
-
1Yes. Place a breakpoint in loadView of your ViewController to see it yourself. You can simulate low memory condition in iOS simulator (Hardware -> Simulate memory warning). – 0x8badf00d Jun 06 '12 at 01:20
1 Answers
1
Yes it will. Check out the Understanding How Views are Loaded and Unloaded section of the iOS View Controller programming guide to see a flow chart of how this works. The documentation for -loadView
also notes that this method will be called when the view
property is accessed, but is currently nil
.

Sean
- 5,810
- 2
- 33
- 41