Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change to orientation detection code

This method seems to be more reliable. This fixes #7
  • Loading branch information...
commit cdbdbbefad27c34f3470ad8f2cc2d1b9bb64b75e 1 parent f532057
@reednj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/UIViewController+TDSemiModalExtension.m
View
2  Source/UIViewController+TDSemiModalExtension.m
@@ -22,7 +22,7 @@ - (void) presentSemiModalViewController:(TDSemiModalViewController*)vc {
CGPoint middleCenter = self.view.center;
CGSize offSize = [UIScreen mainScreen].bounds.size;
- UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
+ UIInterfaceOrientation orientation = UIApplication.sharedApplication.statusBarOrientation;
CGPoint offScreenCenter = CGPointZero;
Please sign in to comment.
Something went wrong with that request. Please try again.