This is probably something quite basic. I am trying to implement AdWhirl into my app, which I have done successfully for the technical part. When I load my app, the add loads and then slides down from the top to sit at the bottom of the screen. However, when I rotate the device, the advert uses “precise” locations and moves off screen. When the advert reloads (refreshes every 15 seconds) the advert moves up to the bottom of the screen of the landscape window. Again, when rotating back from landscape, the Advert Aligns it’s self in the middle of the page vertically (covering content) until a new advert loads. I have attached a number of photos, in a series showing what happens, all in order and taken at least 10 seconds apart (showing test advert of “Hello”).
My code from the Implementation file is included at the end of this post – sorry for not using the code format, just didn’t want to put spaces in front of the whole block, and I think it’s all relatively relevant. It’s also available at the paste bin: http://pastebin.com/mzavbj2L
Sam
Sorry – it wouldn’t let me upload images. Please send me a PM for images.
Thanks for your help – it was close to a solution (only just got it working tonight – had mostly forgotten about doing it!). After I made you changes to my .h, I was trying to call
[adWhirlView adWhirlDidReceiveAd:(AdWhirlView *)adView]. This kept returning errors, even though it was defined in the AdWhirlView class. As a fix, I added-(void) adWhirlDidReceiveAd:(AdWhirlView *)adViewand then called each time the frame rotated[self adWhirlDidReceiveAd:(AdWhirlView *)adView];.Thanks again – so glad it’s finally working.
Sam