开发者

Subview shifting down 20 pixels when called in AppDelegate

开发者 https://www.devze.com 2022-12-19 12:18 出处:网络
I\'m facing this issue when I\'m calling AdMob ad with [rootController.view addSubview:adMobAd]; //setup the ad

I'm facing this issue when I'm calling AdMob ad with

[rootController.view addSubview:adMobAd]; //setup the ad

Upon returning from the ad being clicked the AdMob frame moves down 20 pixels. However it s开发者_运维百科eems 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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消