Created
November 5, 2012 15:39
-
-
Save mrsidique/4017832 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)swingReceivedNotificationReceived:(NSNotification*)notification | |
| { | |
| if ([[notification name] isEqualToString:@"SwingReceivedNotification"]) | |
| { | |
| NSDictionary *notificationDictionary = [notification object]; | |
| //set values on all screens | |
| for (int i = 0; i < [self childViewControllers].count; i++) { | |
| MetricsDisplayViewController *viewController = (MetricsDisplayViewController*)[self.childViewControllers objectAtIndex:i]; | |
| NSString *viewControllerTitle = [NSString stringWithFormat:@"%@", viewController.title]; | |
| viewController.metricLabelValue = [notificationDictionary valueForKey:viewControllerTitle]; | |
| } | |
| //immediately update the values on the screen if not in demo mode. Otherwise wait for the progress bar to complete. See updateProgressBar method | |
| if (![[NSUserDefaults standardUserDefaults]boolForKey:@"demoModeEnabled"]) { | |
| [self setLabelValues]; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment