Skip to content

Commit

Permalink
发现tabbar广告显示的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
fengchuanxiang committed Apr 13, 2016
1 parent 5336578 commit d7dc5f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FCXUniversial/FCXDiscover/FCXDiscoverViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ - (void)viewDidLoad {
self.edgesForExtendedLayout = UIRectEdgeNone;

CGFloat adHeight = 0;
CGFloat tabBarHeight = 0;
if (self.tabBarController) {
tabBarHeight = 49;
}

if ([[FCXOnlineConfig fcxGetConfigParams:@"showAdmob" defaultValue:@"1"] boolValue]) {
adHeight = 50;
[self showAdmobBanner:CGRectMake(0, SCREEN_HEIGHT - 64 - 50, SCREEN_WIDTH, 50) adUnitID:[FCXOnlineConfig fcxGetConfigParams:@"AdmobID" defaultValue:self.admobID]];
[self showAdmobBanner:CGRectMake(0, SCREEN_HEIGHT - 64 - 50 - tabBarHeight, SCREEN_WIDTH, 50) adUnitID:[FCXOnlineConfig fcxGetConfigParams:@"AdmobID" defaultValue:self.admobID]];
}

NSArray *array = [FCXOnlineConfig fcxGetJSONConfigParams:@"discover_native"];
Expand Down

0 comments on commit d7dc5f1

Please sign in to comment.