Hi,
I looked around and found some code to display an iAd in a window, actually off the bottom and it appears if the iAd loads by moving up into view.
However when I run it, weird things happen such as the window disappears off screen.
What am I doing wrong?
var win = Titanium.UI.createWindow({ backgroundColor:'red' }); win.open({fullscreen:true}); var iads = Ti.UI.iOS.createAdView({ backgroundColor : '#336699', bottom: -100, height : 400, width : 300 }); t1 = Titanium.UI.createAnimation({ bottom : 0, duration : 750 }); iads.addEventListener('load', function() { iads.animate(t1); }); win.add(iads);
1 Answer
I've answered my own question:
var win = Titanium.UI.createWindow({ backgroundColor:'red' }); win.open({fullscreen:true}); win.title = 'Line Status'; var iads = Ti.UI.iOS.createAdView({ backgroundColor : '#336699', bottom: -100, height : Ti.UI.SIZE, width : Ti.UI.SIZE }); t1 = Titanium.UI.createAnimation({ bottom : 0, duration : 750 }); iads.addEventListener('load', function() { iads.animate(t1); }); win.add(iads);
Your Answer
This question has been locked and cannot accept new answers.