问题描述
使用
[rootController.view addSubview:adMobAd]; //setup the ad
从点击的广告返回后,AdMob框架向下移动20像素.但是,这似乎不是AdMob问题,而是此处也讨论的问题: https://Discussions.apple.com/thread/2288486
Upon returning from the ad being clicked the AdMob frame moves down 20 pixels. However it seems that this is not a AdMob issue, but a issue that is also discussed here: https://discussions.apple.com/thread/2288486
但是我无法正常工作,有什么想法吗?
However I couldn't get it to work, any ideas?
推荐答案
20像素是状态栏的高度.如果该应用程序不使用状态栏,请确保您正在使用的所有XIB文件都已关闭状态栏.您还可以在Info.plist中包括UIStatusBarHidden属性并将其设置为YES.
20 pixels is the height of the status bar. If the app will don't use the status bar make sure all the XIB files you are using has the status bar turned off. You may also include in the Info.plist the UIStatusBarHidden property and set it to YES.
这篇关于在AppDelegate中调用时,子视图下移20个像素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!