Skip to content

Instantly share code, notes, and snippets.

@josescasanova
Created October 3, 2015 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josescasanova/611fcc6cb9a984250912 to your computer and use it in GitHub Desktop.
Save josescasanova/611fcc6cb9a984250912 to your computer and use it in GitHub Desktop.
TVML Method
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