バナービューでiAdを使用しています。次のコードは、広告が隠されているという警告を表示します。
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
if (UIInterfaceOrientationIsPortrait(toInterfaceOrientation)) {
_bannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;//WARNING SHOWN WHEN THIS STATEMENT EXECUTES
} else {
_bannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
}
[self layoutAnimated:duration > 0.0];
}
インターフェースの向きを変更するだけだったのに、なぜ広告が隠されるべきなのか理解できません。手がかりをいただければ幸いです。