Instance Method

addImage:

Adds an image to the post.

Declaration

- (BOOL)addImage:(UIImage *)image;

Parameters

image

The image to add to the post.

Return Value

Returns a Boolean value that indicates whether the image was successfully added.

Discussion

This method returns NO if image does not fit in the currently available space, or if the view controller has already been presented to the user (and therefore cannot be changed). For the accepted UIImage formats, see Figure 2. Image size limits are dependent on the target service and are documented by the service provider. For links to documentation for the supported services, see Table 1.

See Also

Specifying the Contents of the Post

- setInitialText:

Sets the initial text to be posted.

- addURL:

Adds a URL to the post.

- removeAllImages

Removes all images from the post.

- removeAllURLs

Removes all URLs from the post.