Class

MSMessagesAppViewController

The principal view controller for iMessage apps.

Declaration

@interface MSMessagesAppViewController : UIViewController

Overview

Use this class to manage your extension. For more information on app extensions, see App Extension Programming Guide.

Topics

Managing the Extension’s State

activeConversation

The conversation currently displayed in the transcript.

- dismiss

Dismisses the extension and marks it for termination.

- willBecomeActiveWithConversation:

Invoked just before the Messages extension becomes active.

- didBecomeActiveWithConversation:

Invoked after the Messages extension becomes active.

- willResignActiveWithConversation:

Invoked just before the message resigns its active status.

- didResignActiveWithConversation:

Invoked after the message resigns its active status.

Tracking Messages

- willSelectMessage:conversation:

Invoked in response to the user selecting a message object in the transcript, before the system updates the conversation’s selectedMessage property.

- didSelectMessage:conversation:

Invoked in response to the user selecting a message object in the transcript, after the system updates the conversation’s selectedMessage property.

- didReceiveMessage:conversation:

Invoked when the iMessage app receives a new message object.

- didStartSendingMessage:conversation:

Invoked when the user sends a message object.

- didCancelSendingMessage:conversation:

Invoked when the user deletes a message object from the Messages app’s input field.

Working with Presentation Styles and Contexts

presentationStyle

The extension’s current presentation style.

- requestPresentationStyle:

Asks the extension’s user interface to transition to the provided style.

- willTransitionToPresentationStyle:

Tells the view controller that the extension is about to transition to a new presentation style.

- didTransitionToPresentationStyle:

Tells the view controller that the extension has transitioned to a new presentation style.

MSMessagesAppPresentationStyle

Presentation styles that describe your iMessage app’s appearance.

presentationContext

The context describing where your iMessage app is presented.

MSMessagesAppPresentationContext

Presentation contexts describing where your iMessage app appears.

Relationships

Inherits From

See Also

Custom iMessage App Interface

IceCreamBuilder: Building an iMessage Extension

Allow users to collaborate on the design of ice cream sundae stickers.

MSMessagesAppTranscriptPresentation

A protocol that provides support for displaying live messages in the transcript of the Messages app.

MSMessagesAppPresentationStyle

Presentation styles that describe your iMessage app’s appearance.