我在 ViewController 中设置了 AdMob,它位于底部。一切都很好,直到我隐藏我的导航栏。当我的导航栏被隐藏时,AdMob 框架会上升。我怎样才能让它坚持我的观点的底部?这就是我所拥有的
-(void)navBarTransition:(BOOL)hide
{
[[self navigationController] setNavigationBarHidden:hide animated:YES];
//addjust frame height when ads is visible
if(hide)
{
CGRect frame = CGRectMake(0.0,self.view.frame.size.height + GAD_SIZE_320x50.height,GAD_SIZE_320x50.width, GAD_SIZE_320x50.height);
[bannerView_ setFrame:frame];
}
}