如何使iAdBannerView在Adaptive Layout故事板xcode 6的整个宽度上拉伸 [英] How to get iAdBannerView to stretch across full width of Adaptive Layout Storyboard xcode 6

查看:118
本文介绍了如何使iAdBannerView在Adaptive Layout故事板xcode 6的整个宽度上拉伸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道应该如何在Xcode 6中存在的Adaptive Layout故事板的整个宽度上拉伸iAdBannerView.

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.

推荐答案

您的ADBannerView将知道它在哪个设备上并正确设置尺寸.您只需要让自动版式知道广告的位置即可.例如,如果您希望ADBannerView位于屏幕底部,然后使用Bottom Space to: Bottom Layout Guide将其固定在视图的底部,然后将其与Align Center X to: Superview对齐.

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.

这篇关于如何使iAdBannerView在Adaptive Layout故事板xcode 6的整个宽度上拉伸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆