Commit 821ea287 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Fix disappearing navigation bar on search

While searching, if the user change the orientation of the device, the navigation bar disappeared.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 922c995d
......@@ -1738,6 +1738,18 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
} completion:nil];
}
#pragma mark - UISearchBar Delegate
- (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar
{
if (!self.usingTableViewToShowData) {
[self.collectionView.collectionViewLayout invalidateLayout];
}
[self.searchDisplayController setActive:NO];
[self enableNavigationBarAnimation:YES resetPositionWithAnimation:YES];
[self.navigationController setNavigationBarHidden:NO animated:NO];
}
#pragma mark - Search Display Controller Delegate
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment