Skip to content

Commit 3598273

Browse files
author
Joey Lorich
committed
Fix video rotation crash bug
1 parent 66d9fe5 commit 3598273

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

EasyReader/Application/Controllers/EZRRootViewController.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,6 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
4040
return self;
4141
}
4242

43-
- (BOOL)shouldAutorotate
44-
{
45-
return NO;
46-
}
47-
48-
- (NSUInteger)supportedInterfaceOrientations
49-
{
50-
return UIInterfaceOrientationPortrait;
51-
}
52-
5343
/**
5444
* If the left menu is open, it closes it
5545
* Otherwise it opens to the left menu

EasyReader/Application/Controllers/Home/EZRHomeViewController.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ -(NSUInteger)supportedInterfaceOrientations {
185185
return UIInterfaceOrientationMaskPortrait;
186186
}
187187

188+
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
189+
return UIInterfaceOrientationPortrait;
190+
}
191+
188192
/**
189193
* Tells the calling object that this view controller should not autorotate
190194
*/

0 commit comments

Comments
 (0)