UIViewController's didReceiveMemoryWarning in ARC environment
问题 I'm evaluating the switch to ARC (automatic reference counting) and the refactoring to apply to my code. Among the things I have to figure out, there is this: what should I do in didReceiveMemoryWarning if the explicit release of objects is not allowed by ARC? Currently, I use that method to release objects belonging to my controller and that are easily retrievable via lazy getters: - (void)didReceiveMemoryWarning { [_foo release]; _foo = nil; [super didReceiveMemoryWarning]; } and the