iphone - <Google> Must set the rootViewController property of GADBannerView before calling loadRequest: -


i use google admob sdk in iphone app, did set rootviewcontroller property, delegate property

self.adbannerview.rootviewcontroller = basedviewcontroller; self.adbannerview.delegate = basedviewcontroller; [self.adbannerview loadrequest:[gadrequest request]]; 

but keep getting message while running app:

<google> must set rootviewcontroller property of gadbannerview before calling loadrequest: 

i manage 3 gadbannerview @ same time, know status of gadbannerview (does have rootviewcontroller set or not) while debugging app?

i think basedviewcontroller not created yet. step 1) create viewcontroler step 2) assign


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -