I’ve completed the Bronze challenge by having the App Delegate receive the notification and setting the backgroundColor like so:
self.window.rootViewController.view.backgroundColor = [UIColor grayColor];
This works fine and all, but I feel like this is the easy way versus doing the correct way. Here are my questions:
[ul]Is it adhering to the MVC pattern to modify the View in this way?
Should the Notification subscription be happening in the HeavyViewController? If not why?
Would it be better (more correct) to have the App Delegate get the Proximity message and then send a message to the HeavyViewController which then changes the color?[/ul]
Thanks for the advice!