 
 	func applicationDidBecomeActive(application: UIApplication) {
 		// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+
+		if inBackground {
+			// FIXME: Going through childViewControllers like this feels unbelievably prone to errors...
+			let mainVC = self.window?.rootViewController?.childViewControllers[0] as! ViewController
+			mainVC.updateData()
+			inBackground = false
+		}
 	}
 
 	func applicationWillTerminate(application: UIApplication) {

class AppDelegate: UIResponder, UIApplicationDelegate {

	var window: UIWindow?

	var locationManager: CLLocationManager?


	func applicationDidEnterBackground(application: UIApplication) {
		// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
		// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.

		inBackground = true
	}

	func applicationWillEnterForeground(application: UIApplication) {
