Instance Property

textView

The editable text view in the compose view.

Declaration

iOS, Mac Catalyst
@property(readonly, nonatomic) UITextView *textView;
macOS
@property(readonly) NSTextView *textView;

Discussion

When a user activates a Post or Send button, you can send their text by sending self.textView.text. Note that the SLComposeServiceViewController base class creates textView in its loadView method and sets itself to be the textView delegate.

See Also

Managing the Contents of the Post

contentText

A string that represents the text which the user entered into the compose view’s text view.

placeholder

A string that’s displayed in the compose view’s text view when the text view is empty.