是的,我已经看到了另一个问题,但它们没有帮助。所以我想把 iAD 横幅从我的视野中移开。它在 iPhone 上,在纵向视图的屏幕顶部。这是我的代码。我在哪里错了?
//Move the banner off the screen.
- (void)moveBannerViewOffScreen
{
if (self.bannerView.isHidden == NO)
{
[UIView beginAnimations:@"animateAdBannerOff" context:NULL];
bannerView.frame = CGRectOffset(bannerView.frame, 0, bannerView.frame.size.height);
[UIView commitAnimations];
self.bannerView.hidden = YES;
}
}
//Move the banner on the screen.
- (void)moveBannerOnScreen
{
if (self.bannerView.isHidden ==YES)
{
[UIView beginAnimations:@"animateAdBannerOn" context:NULL];
bannerView.frame = CGRectOffset(bannerView.frame, 0, -bannerView.frame.size.height);
[UIView commitAnimations];
self.bannerView.hidden = NO;
}
}