Attaches arbitrary content to the message.
- iOS 7.0+
- Mac Catalyst 13.0+Beta
Content in the form of an
NSDataobject to attach to the message. Must not be
A valid Uniform Type Identifier (UTI) appropriate for the attachment data. See Uniform Type Identifiers Reference. Must not be
The name to present to the user, in the message UI, for the data attachment.
YES if the attachment data was successfully added to the message, or
This method is especially useful when the attachment you want to add to a message does not have a file system representation. This can be the case, for example, for programmatically composed audiovisual content.