Skip to content

Commit

Permalink
Allow full autorotation on login screen w/ iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Apr 25, 2016
1 parent 8666db1 commit cf27bcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion OpenMRS-iOS/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,13 @@ class LoginViewController : UIViewController, UITableViewDelegate, UITableViewDa
}

override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.Portrait
if UIDevice.currentDevice().userInterfaceIdiom == .Pad
{
return .All
}
else
{
return .Portrait
}
}
}

0 comments on commit cf27bcb

Please sign in to comment.