开发者

How do you add an iad to a tabbarcontroller properly without using IB?

开发者 https://www.devze.com 2023-01-08 18:59 出处:网络
I am able to add an iAd Banner View to my tab bar controller with no problem.The issue comes with the rende开发者_开发技巧ring.The Banner View is drawn overtop of the navigation bar in my interface.

I am able to add an iAd Banner View to my tab bar controller with no problem. The issue comes with the rende开发者_开发技巧ring. The Banner View is drawn overtop of the navigation bar in my interface.

How can I push the navigation bar down or is their a better approach? I need to do this all programmatically without IB.


If you're creating the ADBannerView programmatically, you can set the coordinates in -initWithFrame:

adView = [[ADBannerView alloc] initWithFrame:CGRectMake(0, YYYY, 0, 0)];

where YYYY is the desired Y-location for the ad. Hope this helps!

0

精彩评论

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