简体   繁体   English

iOS 7或8-将iAd与MapKit结合使用

[英]iOS 7 or 8 - combining iAd with MapKit

When you open a map with MapKit, it displays a small "Legal" link near the bottom which you can access for a lot of legal stuff. 当您使用MapKit打开地图时,它将在底部附近显示一个小的“法律”链接,您可以访问其中的很多法律资料。 According to the guidelines, this link must not be interfered with to prevent it from functioning. 根据准则,不得干扰此链接以防止其运行。 I don't even know if it can be moved. 我什至不知道它是否可以移动。

At the same time, the recommended placement of ads from iAd is at the bottom of the screen. 同时,iAd推荐的广告位置在屏幕底部。 Makes sense because that's where the fingers are. 很有道理,因为那是手指所在的位置。 But placing the ad there will overlap the link and prevent it from being accessed. 但是,将广告放置在该位置会重叠该链接,并阻止其访问。

I was wondering if anyone has set up iAds so that instead of overlaying the main screen, it reduces the size of the main screen, and positions itself "next" to it? 我想知道是否有人设置了iAds,以使它不会覆盖主屏幕,而是减小了主屏幕的尺寸,并且将自身定位在其旁边?

I'm thinking if I do this with other controls at the bottom, then would that inconvenience users who are trying to access the controls, only to have an ad slip underneath? 我在想,如果我使用底部的其他控件执行此操作,那么那些试图访问控件的不便用户只会在下面看到广告?

Would it be better to go against recommendation and put the ad at the top? 违背建议并将广告放在首位会更好吗?

I suggest the simplest solution possible: set the canDisplayBannerAds property of your view controller to true ; 我建议最简单的解决方案:将视图控制器的canDisplayBannerAds属性设置为true this should handle pushing display ads up from the bottom and resizing the existing views. 这应该可以从底部向上推展示广告并调整现有视图的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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