简体   繁体   中英

Manage iAd size when iPhone rotate

I've been googling and I cannot find anything on this.

I have an iAd banner working fine in portrait mode on iPhone. I want it to go to landscape mode. But I'd like to have the size it should have (the default exact size for landscape). I have set constraints so that it's sticked to bottom left and right. Height is also a constraints (set to 50, default portrait height) because I get errors and misplacement otherwise. The only thing I need is to have height 32 when iPhone rotate to landscape.

I've seen that all resizing method of ad banner are deprecated since iOS 6. Any idea how to do it then ?

Thanks !

检测界面的旋转并更新约束中的常数(可以根据需要设置约束变化的动画)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM