Framework

iAd

Display advertisements in a dedicated portion of your app’s user interface. Receive revenue when users view or click the ads.

Overview

iAd allows your application to earn revenue by displaying advertisements to the user. Your application dedicates a portion of its user interface to display advertisements and in turn you receive revenue when users view or click those advertisements.

While you are developing your application, iAd sends test advertisements to help you verify your implementation is correct. To receive live advertisements from iAd in a release application, you need to integrate the iAd Framework in your application and submit your binary using iTunes Connect.

Symbols

Classes

ADBannerView

The ADBannerView class provides a view that displays banner advertisements to the user. When the user taps a banner view, the view triggers an action programmed into the advertisement. For example, an advertisement might show a movie, present a modal advertisement, or launch Safari to show a webpage. Your application is notified when an action starts and stops, but does not otherwise interact with the advertisement. You receive revenue when users see new advertisements or trigger their actions.

Deprecated
ADClient

The ADClient class is used to determine iAd-specific information about the app. Specifically, you use it to determine whether the app was installed as the result of user interaction with an ad associated with an iAd Network campaign.

ADInterstitialAd

The ADInterstitialAd class provides full-screen advertisements that your iPad application can display to the user. When the user taps a full-screen advertisement, the advertisement launches a full-screen ad with rich media and interactive capabilities. Your application is notified when the advertisement is launched, but does not otherwise interact with the ad. You receive revenue when users view the advertisements or interact with the advertisements displayed by your application.

Deprecated

Protocols

ADBannerViewDelegate

The ADBannerViewDelegate protocol is implemented by an object to react to changes in an ADBannerView object. The banner view calls its delegate when a new advertisement is loaded, when the user interacts with an advertisement, and when errors occur.

ADInterstitialAdDelegate

The ADInterstitialAdDelegate protocol is implemented by an object so that your application can respond to changes in an ADInterstitialAd object. An ad object calls its delegate whenever the state of the ad changes.

Structures

Extended Types

ADClientError
ADErrorDeprecated
AVPlayerViewController

AVPlayerViewController displays the video content of an AVPlayer object along with system-supplied playback controls.

MPMoviePlayerController

A movie player (of type MPMoviePlayerController) manages the playback of a movie from a file or a network stream. Playback occurs in a view owned by the movie player and takes place either fullscreen or inline. You can incorporate a movie player’s view into a view hierarchy owned by your app, or use an MPMoviePlayerViewController object to manage the presentation for you.

Deprecated
UIViewController

The UIViewController class provides the infrastructure for managing the views of your iOS apps. A view controller manages a set of views that make up a portion of your app’s user interface. It is responsible for loading and disposing of those views, for managing interactions with those views, and for coordinating responses with any appropriate data objects. View controllers also coordinate their efforts with other controller objects—including other view controllers—and help manage your app’s overall interface.

See Also

Related Documentation