Pop a keyboard when integrated admob
He and I have met with the same problems.
Ref post on google group:
We are using admob in our apps ( our apps are cocos2d-x based - a C++
cross platform).
After clicking an Admob ad the keyboard is opened (not immediately -
it happens when the ad is replaced , after the next loadRequest is
called) .
This problem has a chance to appear, when you click or long press the admob ad view
This is a bug?
key code in AppController.mm
...
viewController.view = __glView;
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(480-GAD_SIZE_320x50.width,
0,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
bannerView_.adUnitID = @"a14f29067d6a59a";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = viewController;
// [self.view addSubview:bannerView_];
// Initiate a generic request to load it with an ad.
GADRequest *request = [GADRequest request];
// [request setTesting:YES];
request.additionalParameters =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"AAAAFF", @"color_bg",
@"FFFFFF", @"color_bg_top",
@"FFFFFF", @"color_border",
@"000080", @"color_link",
@"808080", @"color_text",
@"008000", @"color_url",
nil];
// [bannerView_ setDelegate:viewController];
[bannerView_ loadRequest:request];
[__glView addSubview: bannerView_];
// Set RootViewController to window
[window addSubview: viewController.view];
...
iOS Simulator Screen shot Feb 10, 2012 10.47.38 PM.png (89.6 KB)