I can set up an iAd banner in either orientation but it cannot then be changed when the device changes orientation,
If the is horizontal is set on the first call, there is no way to change it later if the orientation changes.
- Code: Select all
var banner = new NKBanner;
banner.init(0,0);
var isHorizontal = '';
function bannerViewDidLoadAd(){
if(window.innerWidth > 1000){
isHorizontal = "yes";
} else {
isHorizontal = "no";
}
banner.init(0, 0, isHorizontal);
banner.show();
}
Can someone else please confirm this is the case
