Iphone 在ios Phonegap中无法单击Admob广告

Iphone 在ios Phonegap中无法单击Admob广告,iphone,ios,cordova,admob,Iphone,Ios,Cordova,Admob,这是我的密码 CGRect viewBounds = CGRectMake([[UIScreen mainScreen] applicationFrame].origin.x, [[UIScreen mainScreen] applicationFrame].origin.y, [[UIScreen mainScreen] applicationFrame].size.width, [[UIScreen mainScreen] applicationFrame].size.height-C

这是我的密码

CGRect viewBounds = CGRectMake([[UIScreen mainScreen] applicationFrame].origin.x, 
[[UIScreen mainScreen] applicationFrame].origin.y, 
[[UIScreen mainScreen] applicationFrame].size.width, 
[[UIScreen mainScreen] applicationFrame].size.height-CGSizeFromGADAdSize(kGADAdSizeBanner).height);

 self.view.frame = viewBounds;

CGPoint origin = CGPointMake(0.0,theWebView.frame.size.height);

bannerView_ = [[[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner origin:origin] autorelease];


bannerView_.adUnitID = @"a151e39dc55f7f0";


bannerView_.rootViewController = self;

[self.view addSubview:bannerView_];

[self.view bringSubviewToFront:bannerView_];


GADRequest *request = [GADRequest request];

request.testDevices = [NSArray arrayWithObjects:
                       GAD_SIMULATOR_ID,                               // Simulator
                       @"heresthestringofmyphone",    // Test iPhone 3Gs 4.3.1
                       nil];

[bannerView_ loadRequest:request];

self.view.frame=视图边界

CGPoint origin=CGPointMake(0.0,webview.frame.size.height)

不是用下面的代码替换上面的两行代码,而是像魔术一样工作

[super webView].frame=viewBounds

CGPoint origin=CGPointMake(0.0[super-webView].frame.size.height)