Instance Method

initWithFrame:textContainer:

Creates a new text view with the specified text container.

Declaration

- (instancetype)initWithFrame:(CGRect)frame textContainer:(NSTextContainer *)textContainer;

Parameters

frame

The frame rectangle of the text view.

textContainer

The text container to use for the receiver (can be nil).

Return Value

An initialized text view.

Discussion

This is the designated initializer for UITextView objects.

See Also

Initializing the Text View