xcode - There have some strange thing with Admob on my app -


now develop app tool xcode xib. fount admob can't run in app. if put admob view upon other views. other views can't touch event. scrollview, tabbar... if put admob view bottom of others. admob can't touch again.

code here :

controller = [[uiviewcontroller alloc]init]; controller.view.frame=cgrectmake(0, 0, rect.size.width, rect.size.height); banner = [[gadbannerview alloc]initwithframe:cgrectmake(                                                          rect.origin.x,                                                          rect.origin.y,                                                          gad_size_320x50.width,                                                          gad_size_320x50.height                                                         )]; banner.adunitid = gad_banner_unit_id; banner.rootviewcontroller = controller; gadrequest *request; if (self._isdebuged) {     request=[[gadrequest alloc]init];     request.testing=true; }else {     request=[gadrequest request]; } [banner loadrequest:request]; [controller.view addsubview:banner]; 

my view struct:

window->rootviewcontroller->rootview:  admob on top layer3:admob view container layer layer2:tab bar layer1:content view container cant touch 1 except admob.  admob in middle: layer3:tab bar layer2:admob view container layer layer1:content view container admob cant display full screen because tabbar mask area. , content cant touch.  admob @ bottom: layer3:tab bar layer2:content view container layer1:admob view container layer works app, cant touch admob more. 

your ad banner's frame big cover controller.view. try this:

banner.frame = cgrectmake(0, 480-gad_size_320x50.height,                            gad_size_320x50.width, gad_size_320x50.height); 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -