Type Method

registerViewElementClass:forElementName:

Registers a view element for the specified element name.

Declaration

+ (void)registerViewElementClass:(Class)elementClass forElementName:(NSString *)elementName;

Parameters

elementClass

The class of the element.

elementName

The element name used when referencing this element within TVML.

Discussion

The TVViewElement class represents a read-only DOM node along with its attributes and aggregated style. This model object is traversed by the interface factory to construct views and view controllers, and to render templates. You must call this method for each element you register.