iOS Developer Library


Message UI Framework Reference


Classes   Protocols  

The Message UI framework provides specialized view controllers for presenting standard composition interfaces for email and SMS (Short Messaging Service) text messages. Use these interfaces to add message delivery capabilities without requiring the user to leave your app.

To display a composition interface, present the corresponding view controller modally from your app. Once presented, the user has the option to customize the contents before sending or canceling the message. Your custom delegate object then handles the dismissal of the view controller based on the user’s action. For information on how to present and dismiss view controllers, see View Controller Programming Guide for iOS.



The UINavigationController class implements a specialized view controller that manages the navigation of hierarchical content.


The MFMailComposeViewController class provides a standard interface that manages the editing and sending an email message.


The MFMessageComposeViewController class provides a standard system user interface for composing text messages.



The MFMailComposeViewControllerDelegate protocol defines the method that your delegate must implement to manage the mail composition interface.


The MFMessageComposeViewControllerDelegate protocol defines a single method that custom objects can implement to respond to updates from a message composition view (an instance of the MFMessageComposeViewController class).