Instance Method


A Boolean value that indicates whether the current content and attachments are valid.


- (BOOL)isContentValid;

Return Value

YES if the current content and attachments are valid for posting, otherwise NO. The default return value is YES.


This method is automatically called after each change a user makes to the text in the compose view. You can use this method to determine whether the Post button should be enabled and to update charactersRemaining, if necessary.

A subclass should implement this method to perform custom validation of the user’s content before initiating a post.

See Also

Validating Content


The number of characters remaining in a custom character limit.

- validateContent

Performs validation of the current content and updates the state of the Post button, if appropriate.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software