TCHContentTemplateVariable Class Reference

Inherits from NSObject
Declared in TCHContentTemplate.h

Overview

The content template variable. See [TCHContentTemplate.variables].

  name

The name of the template variable.

@property (nonatomic, readonly, copy) NSString *name

Discussion

The name of the template variable.

Declared In

TCHContentTemplate.h

  value

The value of the template variable, by default filled with default data.

@property (nonatomic, readonly, copy) NSString *value

Discussion

The value of the template variable, by default filled with default data.

Declared In

TCHContentTemplate.h

– initWithName:value:

Create a new instance of a content variable.

- (instancetype)initWithName:(NSString *)name value:(NSString *)value

Parameters

name

The name of the template variable.

value

The value of the template variable.

Return Value

The new instance of the template variable.

Discussion

Create a new instance of a content variable.

Declared In

TCHContentTemplate.h

– copyWithValue:

Copy the current template saving the name of the content variable with new value.

- (instancetype)copyWithValue:(NSString *)value

Parameters

value

The value of the template variable.

Return Value

The new instance of the template variable.

Discussion

Copy the current template saving the name of the content variable with new value.

Declared In

TCHContentTemplate.h