While our e-mail contact form is fit for purpose, we can still add some extra polish and neat functionality (just like we've been doing to the visual aspect of our ad). As the book now button is on the store details page, let's make our e-mail body include the name of the selected store:
1. Open the
Cloud 9 - iPad
project in iAd Producer and open the map details view of the Book a flight page on the canvas.2. We need to get back to the code editor and find the code that we added in the last exercise. With the book a flight button selected, click on Code | Show Code Editor from the menu bar. This will open the code editor and you can scroll down to find the function
this.onViewTouchUpInside
. When a control only has one function or event added to it, this technique is simple. However, if our control has multiple events, our file can quickly become crowded. To open the code editor directly focused in a function, select the button object...