Type Method

prepareInterstitialAds()

Prepares the iAd framework to display interstitial ads, which may involve prefetching ad assets.

Declaration

class func prepareInterstitialAds()

Discussion

Because displaying an ad involves downloading ad assets over the network, in can sometimes be useful to tell the framework to prepare for ad presentation prior to needing to display the first ad. If there is a point in the launch of your app when it would be convenient to prefetch ad assets, you can use this method to trigger one.

If this method is not called, the first fetch will occur when a view controller's interstitialPresentationPolicy is set to something other than ADInterstitialPresentationPolicy.none.

See Also

Deprecated

func rotatingHeaderView() -> UIView?

Returns the header view to transition during an interface orientation change.

Deprecated
func rotatingFooterView() -> UIView?

Returns the footer view to transition during an interface orientation change.

Deprecated
var interfaceOrientation: UIInterfaceOrientation

Convenience property that provides the current orientation of the interface, meaningful only if the view controller is taking up the full screen.

Deprecated
func willRotate(to: UIInterfaceOrientation, duration: TimeInterval)

Sent to the view controller just before the user interface begins rotating.

Deprecated
func willAnimateRotation(to: UIInterfaceOrientation, duration: TimeInterval)

Sent to the view controller before performing a one-step user interface rotation.

Deprecated
func didRotate(from: UIInterfaceOrientation)

Sent to the view controller after the user interface rotates.

Deprecated
var searchDisplayController: UISearchDisplayController?

The search display controller associated with the view controller.

Deprecated
func shouldAutomaticallyForwardRotationMethods() -> Bool

Returns a Boolean value indicating whether rotation methods are forwarded to child view controllers.

Deprecated
func presentMoviePlayerViewControllerAnimated(MPMoviePlayerViewController!)

Presents the movie player view controller using the standard movie player transition.

Deprecated
func dismissMoviePlayerViewControllerAnimated()

Dismisses a movie player view controller using the standard movie player transition.

Deprecated
func forUnwindSegueAction(Selector, from: UIViewController, withSender: Any?) -> UIViewController?

Called when an unwind segue action wants to search a container'€™s children for a view controller to handle the unwind action.

Deprecated
func segueForUnwinding(to: UIViewController, from: UIViewController, identifier: String?) -> UIStoryboardSegue?

Called when an unwind segue action needs to transition between two view controllers.

Deprecated
var bottomLayoutGuide: UILayoutSupport

Indicates the lowest vertical extent for your onscreen content, for use with Auto Layout constraints.

Deprecated
var topLayoutGuide: UILayoutSupport

Indicates the highest vertical extent for your onscreen content, for use with Auto Layout constraints.

Deprecated
var automaticallyAdjustsScrollViewInsets: Bool

A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.

Deprecated
var canDisplayBannerAds: Bool

A boolean value that indicates whether the view controller is configured to display banner ads.

Deprecated
var originalContentView: UIView?

The originally configured content view of the view controller before banner ads were enabled.

Deprecated
var isPresentingFullScreenAd: Bool

A boolean value that indicates whether the view controller is displaying a full-screen ad.

Deprecated
var isDisplayingBannerAd: Bool

A boolean value that indicates whether the view controller is displaying a banner ad.

Deprecated
var interstitialPresentationPolicy: ADInterstitialPresentationPolicy

Determines whether interstitials should be presented at all and whether the framework or app should manage the presentation.

Deprecated
func requestInterstitialAdPresentation() -> Bool

Asks the framework to display an interstitial ad.

Deprecated
var shouldPresentInterstitialAd: Bool

Returns whether an interstitial ad should be displayed.

Deprecated