Type Method

textAttachmentWithImage:

Creates a new text attachment object to contain the specified image

Declaration

+ (NSTextAttachment *)textAttachmentWithImage:(UIImage *)image;

Parameters

image

The image for the attachment.

Return Value

A new text attachment object initialized with the image.

See Also

Initializing a Text Attachment

- initWithFileWrapper:

Creates a new text attachment object to contain the given file wrapper.

- initWithData:ofType:

Initializes a new NSTextAttachment object with the given data.