I've just started encorporating ADBannerView into my application and everything works as I expected it, within exception of when flipping Simulator (or iPhone) to landscape view, the ad view is white space. When I flip it back to portrait mode, its showing the test ad again.
Here is the code where I'm flipping the ADBannerView:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
if(UIInterfaceOrientationIsPortrait(toInterfaceOrientation)){
adBannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
}
else{
adBannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier480x32;
}
return YES;
}
I've also tried doing the same in willRotateToInterfaceOrientation method with same result.
Is there a step that I'm missing?