Contents

MSStickerBrowserView

A browser view that displays a dynamically generated list of stickers.

Declaration

class MSStickerBrowserView

Overview

Use the MSStickerBrowserView to display a dynamically generated list of stickers. The browser provides drag-and-drop functionality. The user can press and hold a sticker to peel it from the browser, then drag the sticker to any balloon in the transcript. The user can also tap stickers to add them to the Messages app’s input field.

The sticker browser presents the stickers provided by its dataSource property. The data source can dynamically change the list of stickers at runtime. You can also customize the size of the stickers inside the browser.

If you create an MSStickerBrowserViewController object, it automatically creates and displays a sticker browser view with stickers of the specified size. The controller is automatically set as the browser’s data source. Alternatively, you can instantiate your own sticker browser view, letting you customize the size of both the browser and the stickers; however, you need to provide your own data source.

If you need additional customizations, you must build your own user interface using MSStickerView objects.

If you are simply presenting a static list of stickers using the default browser interface, consider building a Sticker Pack Application instead. For more information, see Messages.

Topics

Creating Sticker Browser Views

Managing the Sticker Collection Contents

Managing the Browser’s Appearance

Constants

See Also

Custom sticker packs