With a real device, we can shake, pinch, and rotate the iPhone or iPad to interact with an iAd. These events can be emulated within the simulator.
1. We'll be using an example project with a selection of objects we can interact with. Open the
Interaction Demo
project included with the book assets.2. From the ad overview, click the Simulate button to open the simulator. First up, let's look at rotating the device.
3. You should see the banner appear in iAd Tester. We'll now rotate the simulator to check how our banner looks in landscape. From the menu bar, select Hardware then Rotate Left or Rotate Right to rotate the device. The simulator will then rotate and the banner should update to show in landscape. Now rotate the iAd back to portrait, either by rotating once in the opposite direction or by rotating the simulator in the same direction three more times, to get back where we started.