Created
May 2, 2013 05:17
-
-
Save Rich86man/5500278 to your computer and use it in GitHub Desktop.
This seems to work too
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)loadGroup:(NSString *)group { | |
// If the groups the same, no need to reload. | |
if ([_currentGroup isEqualToString:group]) { | |
return; | |
} | |
_currentGroup = group; | |
NSLog(@"%@: %@", _currentGroup, [_appearanceContainer[_currentGroup] backgroundColor]); | |
[UIView animateWithDuration:kAnimationDuration animations:^{ | |
_sharedInstance.frame = CGRectMake(0, _parentView.frame.size.height, _parentView.frame.size.width, kAppBarTotalHeight); | |
} completion:^(BOOL finished) { | |
self.backgroundColor = [_appearanceContainer[_currentGroup] backgroundColor]; | |
[self showMinimalAppBar]; | |
[self setButtonFrames]; | |
[self setNeedsDisplay]; | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment