I’ve got a navigation controller with a view and a navigation bar.
I want to insert an AdView (I’m using AdWhirl) between the navbar and the view.
The AdView should slide down and push the view down (the view must resize itself, not going offscreen).
I’m working with Three20 if this matters.
Any idea ?
Thanks !
I’m not too familiar with Three20 but I could tell you how I’d normally do it. You would want to write this code in
adWhirlDidReceiveAd:(assuming that you have read the tutorials on setting the correct delegate here and overriding that method, and that your ad view is a subview of the current view in your navigation controller).So in
adWhirlDidReceiveAd:, you want to slide down your content (this is the view that’s in you navigation controller) and slide in the ad that you receive.You probably want to check if the first ad has already come in as well so you don’t do the slide transition every time an ad comes in.
I’m pretty sure you could clean the code up I have there a lot as well, just wanted to throw my thoughts down while I could.