override var shouldAutorotate: Bool { return self.traitCollection.userInterfaceIdiom == .pad } override var supportedInterfaceOrientations: UIInterfaceOrientationMask { return .allButUpsideDown }