Book Image

iAd Production Beginner's Guide

By : Ben Collier
Book Image

iAd Production Beginner's Guide

By: Ben Collier

Overview of this book

Think of an iAd as a micro-app contained within an app on a user's iPhone or iPad that they've downloaded from the App Store. When the user taps your advert's banner it bursts into life filling the entire screen of their device. iAd Beginner's Guide takes you through the start to finish process of building rich, compelling, interactive iAds. You will learn to create beautiful multi-page ads with store finders, social sharing, 3D images and video galleries. You will create ads that utilize the powerful technologies in the iPhone to make your brand shine. Once you have engaged the user you can carry out targeted advertising campaigns with location-based coupons, store finders and social engagement. Using the iTunes Store you will see how it's even possible to add one-click digital content purchasing right within your ad. Learn how iAd producer manages all the HTML5, JavaScript, and CSS3 behind your iAd. You will be creating emotive, gripping and effective mobile advertising campaigns in no time.
Table of Contents (18 chapters)
iAd Production
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Time for action — using the calendar


Using our Cloud 9 - iPad project, we'll add an events page with a button that'll add an event to the user's iPad inbuilt calendar:

  1. 1. Open the Cloud 9 - iPad projectand add a blank page to your ad. Add a button that goes to this page to the main menu carousel. Go back to Chapter 7, Building for the Big Screen, if you need a reminder on how to do this. Name the page Events. Use the image events-button.png for the button image and place it on one of the placeholder cloud cells, such as Cell 4, as shown in the following screenshot:

  2. 2. Open the new Events page on the ad canvas and add a button to the canvas from the object library. Change the text in the button to read Add to calendar.

  3. 3. With the button selected, add an Execute JavaScript event for when the object is Touched Up Inside. Delete the placeholder comment and add the following lines of code:

    //Convert readable date into milliseconds
    var startDate = Date.parse("Tue, 16 Aug 2011 13:30:00 GMT");
    
  4. 4....