Skip to content

Instantly share code, notes, and snippets.

@kenshin03
Created May 10, 2013 00:25
Show Gist options
  • Save kenshin03/5551611 to your computer and use it in GitHub Desktop.
Save kenshin03/5551611 to your computer and use it in GitHub Desktop.
animate menu expand
- (void) animateExpandMenuButtons {
self.launcherButtonView.hidden = NO;
self.notificationsButtonView.hidden = NO;
self.messengerButtonView.hidden = NO;
self.launcherButtonLabel.hidden = NO;
self.notificationsButtonLabel.hidden = NO;
self.messengerButtonLabel.hidden = NO;
[UIView animateWithDuration:0.2f delay:0.0f options:UIViewAnimationOptionCurveEaseInOut animations:^{
self.messengerButtonView.frame = self.expandedMessengerButtonFrame;
self.launcherButtonView.frame = self.expandedLauncherButtonFrame;
self.notificationsButtonView.frame = self.expandedNotificationsButtonFrame;
self.launcherButtonView.alpha = 1.0f;
self.notificationsButtonView.alpha = 1.0f;
self.messengerButtonView.alpha = 1.0f;
self.launcherButtonLabel.alpha = 1.0f;
self.notificationsButtonLabel.alpha = 1.0f;
self.messengerButtonLabel.alpha = 1.0f;
} completion:^(BOOL finished) {
self.menuExpanded = YES;
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment