From the course: iOS App Development: Creating iMessage and Sticker Applications

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Configure compact and expanded modes

Configure compact and expanded modes - iOS Tutorial

From the course: iOS App Development: Creating iMessage and Sticker Applications

Start my 1-month free trial

Configure compact and expanded modes

- [Instructor] The presentViewController function currently does not have any access to the MessagesCompactViewController and CreateMessageViewController. For compact mode, I will need to create and return the MessagesCompactViewController and for expended mode I will need to create MessageViewController. The first step is setting up the storyboard ID's for the corresponding controllers. Select the MessagesCompactViewController and set the storyboard ID. This storyboard ID will be used to access the MessagesCompactViewController. Repeat the same process for CreateMessageViewController but this time making sure that the storyboard ID is unique and different. I have simply said the name of the class as a storyboard ID as the name of the class for both the controllers are different. Now that the storyboard ID is set, I need to access those two controllers on the storyboard. For each of the controller, I'm going to make separate functions that is going to instantiate and return the…

Contents