Commit bc34d4c6 authored by Romain Goyet's avatar Romain Goyet Committed by Felix Paul Kühne

Remove unneeded NavigationBar animation code

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent b7f94731
......@@ -29,8 +29,6 @@
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.navigationBarHidden = NO;
if ([[UIPasteboard generalPasteboard] containsPasteboardTypes:@[@"public.url", @"public.text"]]) {
NSURL *pasteURL = [[UIPasteboard generalPasteboard] valueForPasteboardType:@"public.url"];
if (!pasteURL || [[pasteURL absoluteString] isEqualToString:@""]) {
......@@ -45,13 +43,6 @@
[super viewWillAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
self.navigationController.navigationBarHidden = YES;
[super viewWillDisappear:animated];
}
#pragma mark - UI interaction
- (IBAction)downloadAction:(id)sender
{
......
......@@ -37,8 +37,6 @@
- (void)viewWillAppear:(BOOL)animated
{
self.navigationController.navigationBarHidden = NO;
if ([[UIPasteboard generalPasteboard] containsPasteboardTypes:@[@"public.url", @"public.text"]]) {
NSURL *pasteURL = [[UIPasteboard generalPasteboard] valueForPasteboardType:@"public.url"];
if (!pasteURL || [[pasteURL absoluteString] isEqualToString:@""]) {
......@@ -55,13 +53,6 @@
[super viewWillAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
self.navigationController.navigationBarHidden = YES;
[super viewWillDisappear:animated];
}
- (CGSize)contentSizeForViewInPopover {
return [self.view sizeThatFits:CGSizeMake(320, 800)];
}
......
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