0
我正在嘗試使用iAddBanner,並將其放在我的tabbar頂部。 這給了我一些問題,尤其是在桌面上......如何在選項卡欄上方粘貼iAddBanner並將其保留在那裏
有沒有人成功地做過這件事?
乾杯, 湯米
我正在嘗試使用iAddBanner,並將其放在我的tabbar頂部。 這給了我一些問題,尤其是在桌面上......如何在選項卡欄上方粘貼iAddBanner並將其保留在那裏
有沒有人成功地做過這件事?
乾杯, 湯米
我設法解決我自己的問題。
我最終添加了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;
}