Last active
May 7, 2017 19:57
-
-
Save jen2/37609643e4306ecc70a848296fdb5925 to your computer and use it in GitHub Desktop.
Show the unhighlightDeselected method for "Build a World Clock in Objective-C."
This file contains 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)unhighlightDeselected { | |
NSArray *cities = [@[self.nyc, self.paris, self.moscow, self.hongKong, self.honolulu, self.seattle]mutableCopy]; | |
NSMutableArray *unselectedCities = [NSMutableArray array]; | |
for (UIButton *city in cities) { | |
if (city != self.selectedButton) { | |
[unselectedCities addObject:city]; | |
} | |
} | |
[unselectedCities setValue:[UIColor blueColor] forKey:@"tintColor"]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment