Let's continue using the Cloud 9 - iPad
adthat we created in the last chapter. We'll add some tweaks to our Test Flight page's scroll view object that wouldn't be possible with the iAd Producer interface:
1. Open the project
Cloud 9 - iPad
in iAd Producer. If you didn't complete this project, then open the file8. Store Finder.iadproj
in the folderCloud 9
and thenExercises
. This file has the previous exercises completed for you.2. Double-click on the first page, Test Flight, from the ad overview to open it on the canvas. Right-click on the hatched background outside of the canvas and expand the menu item Page Events | View Did Load | Execute JavaScript. This will automatically create the required function for this event and open the code editor for this page:
3. In the code editor window, iAd Producer has created a new function for this page that will be called and run when the view appears. The
//Code goes here
placeholder comment shows you where to...