Sample Code

Creating hybrid applications with Document Service based View Controllers

Create view controllers that show TVMLKit content in a native application through the use of Document view controllers that are fulfilled through a Javascript based service.



Configure the Sample Code Project

Before you run the sample code project in Xcode:

To start a local server run the following command in a terminal within the “Server” folder to create a simple webserver.

ruby -run -ehttpd . -p9001

See Also

Views and View Controllers

class TVViewElement

A representation of a read-only DOM node.

protocol TVInterfaceCreating

A protocol that defines methods used to create views and view controllers.

class TVInterfaceFactory

A factory for the creation of views and view controllers.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software