Attaches a specified file to the message.
- iOS 7.0+
The file URL for the attachment. Must not be
If you supply a string here, the message UI uses it for the attachment. Use an alternate filename to better describe the attachment or to make the name more readable.
OK to use a
nilvalue, in which case the attachment’s actual filename is displayed in the message UI.
true if the attachment at the specified URL was successfully added to the message, or
You can add zero or more attachments to a message before you display the message to the user. To access information about a message’s attachments, access the