我从Apple下载了TVMLCatalog应用程序.代码分为两部分.
我正在尝试将客户端 TVJS文件托管在与TVMLCatalog项目相同的包中.
我已经改变了AppDelegate didFinishLaunching如下:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds)
/*
Create the TVApplicationControllerContext for this application
and set the properties that will be passed to the `App.onLaunch` function
in JavaScript.
*/
let appControllerContext = TVApplicationControllerContext()
/*
The JavaScript URL is used to create the JavaScript context for your
TVMLKit application. Although it is …
Run Code Online (Sandbox Code Playgroud)