Commit 15c6475c authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix dialog rotation for Network Stream, HTTP Download, Dropbox and About on iOS 5 (close #8992)

parent 59becbf7
......@@ -37,6 +37,13 @@
self.webView.delegate = self;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone && toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
return NO;
return YES;
}
- (IBAction)goBack:(id)sender
{
[self.navigationController popViewControllerAnimated:YES];
......
......@@ -116,6 +116,15 @@
_backButton.enabled = ![_currentPath isEqualToString:@"/"];
}
#pragma mark - interface interaction
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone && toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
return NO;
return YES;
}
- (IBAction)goBack:(id)sender
{
if (![_currentPath isEqualToString:@"/"]) {
......
......@@ -47,6 +47,13 @@
}
#pragma mark - UI interaction
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone && toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
return NO;
return YES;
}
- (IBAction)goBack:(id)sender
{
[self.navigationController popViewControllerAnimated:YES];
......
......@@ -75,6 +75,13 @@
}
#pragma mark - UI interaction
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone && toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)
return NO;
return YES;
}
- (IBAction)goBack:(id)sender
{
[self.navigationController popViewControllerAnimated:YES];
......
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