Trying to make iAds go off screen when no ad is loaded, as per Apple's request. They gave me this code:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
{
if (self.bannerIsVisible)
{
[UIView beginAnimations:@"animateAdBannerOff" context:NULL];
// assumes the banner view is at the top of the screen.
banner.frame = CGRectOffset(banner.frame, 0, -50);
[UIView commitAnimations];
self.bannerIsVisible = NO;
}
}
I made my view a delegate for iAds and whatnot, but whenever I try to compile, I get:
"Request for member 'bannerIsVisible' in something not a structure or union
I tried adding a BOOL bannerIsVisible, but it just made things worse