Out of the box, iAd Producer doesn't have an object or template that supports sending SMS; however, we can achieve this with the iAd JS Library, the framework that powers our iAd. We're able to send an SMS with just four lines of code; don't worry, it's very simple to add this to your ad.
Note
Remember: iAd Producer is an editor that manages most of the iAd JS library for us, although it currently doesn't support all the available features, so we occasionally have to modify and add some custom code.
1. We'll continue with our
Coffee Beans
project; if it isn't already open, open it now.2. Let's create a button on the Menu page so our users can share our brand with their friends. Open the Menu page on the editing canvas and add a button object from the Objects library. Change the button text to something like
Tell a friend
, and then position the button on the bottom right of the screen. Change the button's styling. For example, try:Setting the background...