10. iAd, Airplay, and In-app Purchases

Your game may benefit from the addition of a couple features that aren’t specifically game related, but could add value to your game and possibly increase its earning potential.

In this chapter, you’ll see how to add iAd and in-app purchases to your game to create additional revenue streams, and learn how to display your game on a big-screen TV.

Using iAd

iAd is the Apple-supplied advertising framework that allows your app to display ads. The one requirement of iAd is that the ads are shown on a ViewController, so when the user taps on the ad, iAd can load it fullscreen in a modal ViewController.

iAd generates revenue through a combination of tap-throughs and successful presentation of the ad. The revenue ...

Get Building iOS 5 Games: Develop and Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.