2012-05-17 17 views

回答

0

我設法解決我自己的問題。

我最終添加了adbanner作爲我的tabbarcontroller的子視圖。

- (void)bannerViewDidLoadAd:(ADBannerView *)banner 
{ 
    [iAdBanner setFrame:CGRectMake(0, 381, 200, 32)]; 
    [self.tabBarController.view addSubview:iAdBanner]; 
    //The inset is for the current tableview to get all the content on top of the adbanner 
    UIEdgeInsets inset = UIEdgeInsetsMake(0, 0, 50, 0); 
    self.tableView.contentInset = inset; 
    adVisible = true; 
} 
相關問題