Created
October 3, 2015 20:28
-
-
Save josescasanova/611fcc6cb9a984250912 to your computer and use it in GitHub Desktop.
TVML Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
window = UIWindow(frame: UIScreen.mainScreen().bounds) | |
let appControllerContext = TVApplicationControllerContext() | |
guard let javaScriptURL = NSURL(string: AppDelegate.TVBootURL) else { | |
fatalError("unable to create NSURL") | |
} | |
appControllerContext.javaScriptApplicationURL = javaScriptURL | |
appControllerContext.launchOptions["BASEURL"] = AppDelegate.TVBaseURL | |
appController = TVApplicationController(context: appControllerContext, window: window, delegate: self) | |
r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment