I'm trying to implement a mediation solution between iAd/AdMob. My code works on all iOS 7 simulators and devices. My code works on all iOS 8 devices. My code does not work on any iOS 8 simulators.
My code in viewDidLoad is too long but essentially i placed iAd code and AdMob code.
-(void)bannerViewDidLoadAd:(ADBannerView *)banner{ [UIView beginAnimations:nil context:NULL]; iAd.frame=CGRectOffset (iAd.frame 0, -667); [UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
iAd.frame=CGRectOffset (iAd.frame 0, 0);
[UIView commitAnimations];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{
NSLog(@"AdMob received");
[UIView beginAnimations:nil context:NULL];
iAd.frame=CGRectOffset (iAd.frame 0, -740);
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
AdMob.frame=CGRectOffset (iAd.frame 0, -667);
[UIView commitAnimations];
}
The above code shows when iAd shows, AdMob hides and then when iAd fails, AdMob loads. The thing is for the iOS 8 simulator the NSLog message appears in the debug area but the didFailToReceiveAdWithError banners never appear. No matter what coordinates I gave them, banners never appear. It didn't matter if I changed it to iAd or AdMob, never appeared. So is this an iOS 8 simulator bug?