我正在尝试在扩展的UINavigationController中添加ADBannerView。 当横幅加载时,我会重新调整视图的大小:
CGRect contentFrame = [[UIScreen mainScreen] applicationFrame];
banner.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
bannerHeight = banner.bounds.size.height;
self.view.frame = CGRectMake(self.view.bounds.origin.x,
(self.view.bounds.origin.y),
self.view.bounds.size.width,
contentFrame.size.height - (bannerHeight));
但是UIView部分隐藏在导航栏下:here
知道出了什么问题吗?
感谢
[1]:
答案 0 :(得分:0)
self.view.frame = CGRectMake(self.view.bounds.origin.x,
(self.view.bounds.origin.y)+(bannerHeight),
self.view.bounds.size.width,
contentFrame.size.height - (bannerHeight));