ASTextCellNode Class Reference

Inherits from ASCellNode : ASDisplayNode : ASDealloc2MainObject
Declared in ASCellNode.h

Overview

Simple label-style cell node. Read its source for an example of custom ASCellNodes.

– initWithAttributes:insets:

Initializes a text cell with given text attributes and text insets

- (instancetype)initWithAttributes:(NSDictionary *)textAttributes insets:(UIEdgeInsets)textInsets

Declared In

ASCellNode.h

  text

Text to display.

@property (nonatomic, copy) NSString *text

Declared In

ASCellNode.h

  textAttributes

A dictionary containing key-value pairs for text attributes. You can specify the font, text color, text shadow color, and text shadow offset using the keys listed in NSString UIKit Additions Reference.

@property (nonatomic, copy) NSDictionary *textAttributes

Declared In

ASCellNode.h

  textInsets

The text inset or outset for each edge. The default value is 15.0 horizontal and 11.0 vertical padding.

@property (nonatomic, assign) UIEdgeInsets textInsets

Declared In

ASCellNode.h