Hiding iAds when loading?

Posted by Jesper Mansa on Stack Overflow See other posts from Stack Overflow or by Jesper Mansa
Published on 2012-03-20T19:19:51Z Indexed on 2012/03/20 23:29 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

I'm trying to make an ios app with an iAd in the bottom but lifted a little bit. It actually woks ok but when the iAd is loading it shows an white area just below where the iAd should be. When its done loading the iAd jumps up in the right position.

I think normaly the button is loaded outside the screen and nthen pop ups when done but because mine add is liftet a little I can see the loading area...

Is there a way to make the iAd load in the sides instead and then popin from the side?

Here is what I have so far:

frame.origin.x = ( _screenWidth - frame.size.width ) / 2;

  if( calculateForBannerOnBottom )
   frame.origin.y = _screenHeight - (frame.size.height/1.2);
  else
   frame.origin.y = -_adView.frame.size.height+(frame.size.height/2.4);

Hoping 4 help and thanks in advance :-)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios