Inherits from NSObject
Declared in TWTRComposer.h

Overview

The TWTRComposer class presents a view to the user to compose a Tweet.

Instance Methods

setImage:

Sets an image attachment.

- (BOOL)setImage:(nullable UIImage *)image

Parameters

image

The image to attach.

Return Value

This will return NO if the receiver has already been presented (and therefore cannot be changed).

Declared In

TWTRComposer.h

setText:

Sets the initial text for the Tweet composition prior to showing it.

- (BOOL)setText:(nullable NSString *)text

Parameters

text

The text to tweet.

Return Value

This will return NO if the receiver has already been presented (and therefore cannot be changed).

Declared In

TWTRComposer.h

setURL:

Adds a URL to the contents of the Tweet message.

- (BOOL)setURL:(nullable NSURL *)url

Parameters

url

The URL.

Return Value

This will return NO if the receiver has already been presented (and therefore cannot be changed).

Declared In

TWTRComposer.h

showFromViewController:completion:

Presents the composer, with an optional completion handler from the specified view controller.

- (void)showFromViewController:(UIViewController *)fromController completion:(TWTRComposerCompletion)completion

Parameters

fromController

The controller in which to present the composer from.

completion

completion The completion handler, which has a single parameter indicating whether the user finished or cancelled the Tweet composition.

Declared In

TWTRComposer.h