调整UINavigationController布局问题
我正在尝试在扩展的 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]:
I'm trying to add a ADBannerView inside my extended UINavigationController.
When the banner loads I re-size the view like this:
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));
but the UIView is partially hided under the navigation bar: here
Any idea what is wrong?
thanks
[1]:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)