SegmentedVC improvement: Improve animation when quitting searh in HomeVC

This commit is contained in:
manuroe 2015-12-15 17:43:32 +01:00
parent 39e57199c5
commit 7fdd6ed6e6

View file

@ -436,6 +436,13 @@
// Hide the tabs header
if (animated)
{
// If the currently selected tab is the recents, force to show it right now
// The transition looks smoother
if (self.selectedViewController.view.hidden == YES && self.selectedViewController == recentsViewController)
{
self.selectedViewController.view.hidden = NO;
}
[UIView animateWithDuration:.3 delay:0 options:UIViewAnimationOptionBeginFromCurrentState | UIViewAnimationOptionCurveEaseIn
animations:^{