How to get iAdBannerView to stretch across full width of Adaptive Layout Storyboard xcode 6

天涯浪子 提交于 2020-01-16 01:09:06

问题


Just wondering how you are supposed to stretch the iAdBannerView across the full width of the Adaptive Layout Storyboard that exists in Xcode 6.

When I try and stretch it to the corners (so I can set auto layout values), it does allow it to be stretched.


回答1:


Your ADBannerView will know which device it is on and set its dimensions correctly. You should just let auto layout know where you want the ad to be. For example, if you wanted the ADBannerView to be at the bottom of the screen then pin it to the bottom of the view with Bottom Space to: Bottom Layout Guide and align it to Align Center X to: Superview.



来源:https://stackoverflow.com/questions/28593534/how-to-get-iadbannerview-to-stretch-across-full-width-of-adaptive-layout-storybo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!