Wednesday, November 21, 2012
- (void)restoreController {
[imageView_ removeFromSuperview];
// Restore status bar to state it was before hiding.
[UIApplication sharedApplication].statusBarHidden = hideStatusBar_;
}
#pragma mark GADInterstitialDelegate
- (void)interstitialDidReceiveAd:(GADInterstitial *)ad {
NSLog(@"Received ad successfully");
[interstitial_ presentFromRootViewController:self];
}
- (void)interstitial:(GADInterstitial *)ad
didFailToReceiveAdWithError:(GADRequestError *)error {
NSLog(@"Failed to receive ad with error: %@", [error localizedFailureReason]);
[self restoreController];
}
- (void)interstitialWillDismissScreen:(GADInterstitial *)ad {
// Remove the imageView_ once the interstitial is dismissed.
[self restoreController];
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment