Instance Property

completionHandler

The handler to call when the user is done composing a post.

Declaration

@property(nonatomic, copy) SLComposeViewControllerCompletionHandler completionHandler;

Discussion

The handler has a single parameter that indicates whether the user finished or cancelled composing the post. This block is not guaranteed to be called on any particular thread. Do not dismiss the SLComposeViewController in your completion handler—the system will do so automatically.

See Also

Processing the Results

SLComposeViewControllerCompletionHandler

Defines a handler to call when the user finishes composing a post.

SLComposeViewControllerResult

Possible values for the result parameter of the completionHandler property.

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