View Controller States
View controller states are CSS classes that are applied to a view controller’s view automatically (or manually with the enterState
method of the iAd.ViewController
class). You can respond to changes in a view controller’s state declaratively by creating CSS rules for these classes.
ad-view-will-appear
The ad-view-will-appear
CSS class corresponds to the VIEW_WILL_APPEAR_STATE
JavaScript state.
Availability
Available in iAd JS 1.1 and later.
ad-view-did-appear
The ad-view-did-appear
CSS class corresponds to the VIEW_DID_APPEAR_STATE
JavaScript state.
Availability
Available in iAd JS 1.1 and later.
ad-view-will-disappear
The ad-view-will-disappear
CSS class corresponds to the VIEW_WILL_DISAPPEAR_STATE
JavaScript state.
Availability
Available in iAd JS 1.1 and later.
ad-view-did-disappear
The ad-view-did-disappear
CSS class corresponds to the VIEW_DID_DISAPPEAR_STATE
JavaScript state.
Availability
Available in iAd JS 1.1 and later.
ad-view-builds-in
The ad-view-builds-in
CSS class corresponds to the VIEW_BUILDS_IN_STATE
JavaScript state.
Availability
Available in iAd JS 1.2 and later.
ad-view-builds-out
The ad-view-builds-out
CSS class corresponds to the VIEW_BUILDS_OUT_STATE
JavaScript state.
Availability
Available in iAd JS 1.2 and later.
ad-view-is-idle
The ad-view-is-idle
CSS class corresponds to the VIEW_IDLE_STATE
JavaScript state.
Availability
Available in iAd JS 1.2 and later.
ad-transition-controller-visible
The ad-transition-controller-visible
CSS class corresponds to the VIEW_IS_VISIBLE_STATE
JavaScript state.
Availability
Available in iAd JS 1.2 and later.
ad-transition-controller-hidden
The ad-transition-controller-hidden
CSS class corresponds to the VIEW_IS_HIDDEN_STATE
JavaScript state.
Availability
Available in iAd JS 1.2 and later.
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-12-13