Fix animation and layout bugs on iPad Pro

This commit is contained in:
Charles Magahern
2016-01-03 13:21:50 -08:00
parent fbde76d734
commit 5936fc8b56
4 changed files with 17 additions and 7 deletions

View File

@@ -11,18 +11,29 @@ import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var mainViewController: MainViewController = MainViewController()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
{
application.statusBarHidden = true
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
self.window?.rootViewController = MainViewController()
self.window?.rootViewController = self.mainViewController
self.window?.makeKeyAndVisible()
return true
}
func applicationDidBecomeActive(application: UIApplication)
{
self.mainViewController.viewDidAppear(false)
}
func applicationDidEnterBackground(application: UIApplication)
{
self.mainViewController.viewDidDisappear(false)
}
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask
{
return UIInterfaceOrientationMask.Landscape