From the course: Building an iOS Messages Application
Unlock this course with a free trial
Join today to access over 22,400 courses taught by industry experts.
Add stickers in a Messages extension
From the course: Building an iOS Messages Application
Add stickers in a Messages extension
- [Instructor] So let's say you have an app that is a messages extension, and you want to put stickers inside of it. So you don't want to make just a sticker pack, you want to have stickers as apart of your existing extension. So we're going to look at how to use a view controller as a sticker browser view controller. So the first thing that you're going to need to do, is import some images into your application. So I have all of my stickers here. Then I've created a class called StickerBrowser that's a subclass of MSStickerBrowserViewController. You'll need to import Messages to get access to that class. Just as a starter for the class, I'm overriding viewDidLoad. Running a method called makeStickers. The method's defined here. There's nothing in it yet. And then I have an array to hold all of my stickers. In my Storyboard file, I've taken my compact view, and I've selected it and changed the class to be a sticker browser. Note that this version of the application does not have all…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.