I've nearly finished my app and the only issue I have is that my iAd banner view will only show on the largest screen. I have set the constraints so the iAd will fit nicely on smaller screens but when I run it on any size other than the largest, all I see is a white box.
The current code I have is:
-(void)bannerViewDidLoadAd:(ADBannerView *)banner {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[banner setAlpha:1];
[UIView commitAnimations];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[banner setAlpha:0];
[UIView commitAnimations];
}
I'm wondering if I should add a line of code to the bannerViewDidLoadAd
to say something about the frame size.
The error I keep getting is:
Frame for "banner view" will be different at run time.
Size will be (320,50) at runtime but is (480,60) in the canvas.
The iAd framework has been imported and the add delegated. It's within a scroll view if that makes any difference.
All my constraints are fine it's just this frame size that's the issue. if i attempt to update frames nothing happens.
Any help would be greatly appreciated.
Thanks.